@RestController @RequestMapping(value="/users/") public class UserResource extends Object
| Constructor and Description |
|---|
UserResource() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<Void> |
createUser(UserBO user) |
org.springframework.http.ResponseEntity<List<UserBO>> |
getAllUsers() |
org.springframework.http.ResponseEntity<UserBO> |
getUserById(String id) |
org.springframework.http.ResponseEntity<UserBO> |
getUserByLogin(String login) |
org.springframework.http.ResponseEntity<Void> |
updateUserScaData(String id,
List<ScaUserDataBO> data) |
@PostMapping public org.springframework.http.ResponseEntity<Void> createUser(@RequestBody UserBO user)
@GetMapping(value="{id}")
public org.springframework.http.ResponseEntity<UserBO> getUserById(@PathVariable(value="id")
String id)
@GetMapping public org.springframework.http.ResponseEntity<UserBO> getUserByLogin(@RequestParam(value="login") String login)
@PutMapping(value="{id}/sca-data")
public org.springframework.http.ResponseEntity<Void> updateUserScaData(@PathVariable
String id,
@RequestBody
List<ScaUserDataBO> data)
Copyright © 2020. All rights reserved.