public interface UserMgmtStaffResourceAPI
| Modifier and Type | Field and Description |
|---|---|
static String |
BASE_PATH |
static String |
BRANCH |
static String |
ROLES |
static String |
USER_CANNOT_REGISTER_IN_BRANCH |
static String |
USER_EMAIL_OR_LOGIN_TAKEN |
static String |
USER_ID |
static String |
USER_NOT_IN_BRANCH |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<UserTO> |
createUser(UserTO user)
Creates new user within the same branch
|
org.springframework.http.ResponseEntity<UserTO> |
getBranchUserById(String userId)
Gets user by ID if it's within the branch
|
org.springframework.http.ResponseEntity<List<UserTO>> |
getBranchUsersByRoles(List<UserRoleTO> roles)
Lists users within the branch and roles
|
org.springframework.http.ResponseEntity<SCALoginResponseTO> |
login(UserCredentialsTO userCredentials)
Authorize returns a bearer token that can be reused by the consuming application.
|
org.springframework.http.ResponseEntity<UserTO> |
register(String branch,
UserTO branchStaff)
Registers a new user within a given branch.
|
org.springframework.http.ResponseEntity<Void> |
updateUserScaData(String userId,
List<ScaUserDataTO> data)
Updates SCA Data for user if it's within the branch
|
static final String BASE_PATH
static final String BRANCH
static final String ROLES
static final String USER_ID
static final String USER_NOT_IN_BRANCH
static final String USER_CANNOT_REGISTER_IN_BRANCH
static final String USER_EMAIL_OR_LOGIN_TAKEN
@PostMapping(value="/register") org.springframework.http.ResponseEntity<UserTO> register(@RequestParam(value="branch") String branch, @RequestBody UserTO branchStaff)
ConflictRestException - user with same login or email already exists@PostMapping(value="/login") org.springframework.http.ResponseEntity<SCALoginResponseTO> login(@RequestBody UserCredentialsTO userCredentials)
userCredentials - tpp login and tpp pin@PostMapping org.springframework.http.ResponseEntity<UserTO> createUser(@RequestBody UserTO user)
user - user to be created@GetMapping org.springframework.http.ResponseEntity<List<UserTO>> getBranchUsersByRoles(@RequestParam(value="roles") List<UserRoleTO> roles)
@GetMapping(value="/{userId}")
org.springframework.http.ResponseEntity<UserTO> getBranchUserById(@PathVariable(value="userId")
String userId)
userId - user ID@PostMapping(value="/{userId}/sca-data")
org.springframework.http.ResponseEntity<Void> updateUserScaData(@PathVariable(value="userId")
String userId,
@RequestBody
List<ScaUserDataTO> data)
userId - user IDdata - user SCA dataCopyright © 2019. All rights reserved.