Add info about force on javadocs

This commit is contained in:
Konstantinos Triantafyllou 2021-07-22 13:02:03 +03:00
parent 8d5e21f3a2
commit 08c6f9c9b9
2 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,7 @@ public class AdminController {
/**
* 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)
public ResponseEntity<Response> assignRole(@PathVariable("type") String type, @PathVariable("id") String id, @RequestParam(required = false) String email,

View File

@ -69,6 +69,7 @@ public class MemberController {
/**
* 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)
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
* If user is an admin of this group, use force=true to revoke both roles
*/
@RequestMapping(value = "/{type}/{id}", method = RequestMethod.DELETE)
public ResponseEntity<Response> removeRole(@PathVariable("type") String type, @PathVariable("id") String id, @RequestParam(required = false) String email,