@RestController @RequestMapping(value="/admin/user") @SwaggerIgnore public class UserAdminController extends Object
| Constructor and Description |
|---|
UserAdminController() |
| Modifier and Type | Method and Description |
|---|---|
ApiResponse |
createUser(UserCreate registration,
Principal principal) |
ApiResponse |
deleteUser(String term,
Principal principal,
javax.servlet.http.HttpServletResponse httpResponse) |
ApiResponse |
find(String term,
Principal principal) |
ApiResponse |
forgotPassword(UserPasswordReset passwordReset,
Principal principal) |
ApiResponse |
resetPassword(UserPasswordReset passwordReset,
Principal principal) |
ApiResponse |
updateUser(UserCreate update,
String term,
Principal principal,
javax.servlet.http.HttpServletResponse httpResponse) |
@RequestMapping(value="/{term:.+}",
method=GET,
produces="application/json")
public ApiResponse find(@PathVariable
String term,
Principal principal)
@RequestMapping(method=POST,
consumes="application/json",
produces="application/json")
public ApiResponse createUser(@RequestBody
UserCreate registration,
Principal principal)
@RequestMapping(value="/{term:.+}",
method=PUT,
consumes="application/json",
produces="application/json")
public ApiResponse updateUser(@RequestBody
UserCreate update,
@PathVariable
String term,
Principal principal,
javax.servlet.http.HttpServletResponse httpResponse)
@RequestMapping(value="/{term:.+}",
method=DELETE,
consumes="application/json",
produces="application/json")
public ApiResponse deleteUser(@PathVariable
String term,
Principal principal,
javax.servlet.http.HttpServletResponse httpResponse)
@RequestMapping(path="/forgot",
method=POST,
consumes="application/json",
produces="application/json")
public ApiResponse forgotPassword(@RequestBody
UserPasswordReset passwordReset,
Principal principal)
@RequestMapping(path="/resetpassword",
method=POST,
consumes="application/json",
produces="application/json")
public ApiResponse resetPassword(@RequestBody
UserPasswordReset passwordReset,
Principal principal)
Copyright © 2017. All rights reserved.