Add info about force on javadocs
This commit is contained in:
parent
8d5e21f3a2
commit
08c6f9c9b9
|
@ -52,6 +52,7 @@ public class AdminController {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Assign admin role to logged in user or user with @email
|
* Assign admin role to logged in user or user with @email
|
||||||
|
* If role doesn't exists or user is not a member of this group already, use force=true to create and assign both roles.
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value = "/{type}/{id}", method = RequestMethod.POST)
|
@RequestMapping(value = "/{type}/{id}", method = RequestMethod.POST)
|
||||||
public ResponseEntity<Response> assignRole(@PathVariable("type") String type, @PathVariable("id") String id, @RequestParam(required = false) String email,
|
public ResponseEntity<Response> assignRole(@PathVariable("type") String type, @PathVariable("id") String id, @RequestParam(required = false) String email,
|
||||||
|
|
|
@ -69,6 +69,7 @@ public class MemberController {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Assign member role to logged in user or user with @email
|
* Assign member role to logged in user or user with @email
|
||||||
|
* If role doesn't exists, use force=true to create and assign the role
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value = "/{type}/{id}", method = RequestMethod.POST)
|
@RequestMapping(value = "/{type}/{id}", method = RequestMethod.POST)
|
||||||
public ResponseEntity<Response> assignRole(@PathVariable("type") String type, @PathVariable("id") String id, @RequestParam(required = false) String email,
|
public ResponseEntity<Response> assignRole(@PathVariable("type") String type, @PathVariable("id") String id, @RequestParam(required = false) String email,
|
||||||
|
@ -97,6 +98,7 @@ public class MemberController {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove member role from logged in user or user with @email
|
* Remove member role from logged in user or user with @email
|
||||||
|
* If user is an admin of this group, use force=true to revoke both roles
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value = "/{type}/{id}", method = RequestMethod.DELETE)
|
@RequestMapping(value = "/{type}/{id}", method = RequestMethod.DELETE)
|
||||||
public ResponseEntity<Response> removeRole(@PathVariable("type") String type, @PathVariable("id") String id, @RequestParam(required = false) String email,
|
public ResponseEntity<Response> removeRole(@PathVariable("type") String type, @PathVariable("id") String id, @RequestParam(required = false) String email,
|
||||||
|
|
Loading…
Reference in New Issue