Skip to content

Commit

Permalink
Merge pull request #3203 from keeps/alindo-dev-ChangeActive
Browse files Browse the repository at this point in the history
edited changeActive
  • Loading branch information
hmiguim authored May 28, 2024
2 parents 58d8ee8 + 93d0bec commit 9e43a4a
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,14 @@ Group getGroup(
Void deleteGroup(
@Parameter(description = "The group name") @PathVariable(name = RodaConstants.API_PATH_PARAM_NAME) String name);

@RequestMapping(path = "/change-active", method = RequestMethod.POST)
@Operation(summary = "Activate a RODA member", requestBody = @RequestBody(required = true, content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, schema = @Schema(implementation = SelectedItems.class))), description = "Activates RODA members", responses = {
@RequestMapping(path = "/users/status", method = RequestMethod.POST)
@ResponseStatus(HttpStatus.NO_CONTENT)
@Operation(summary = "Activate or deactivate a RODA user", requestBody = @RequestBody(required = true, content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, schema = @Schema(implementation = SelectedItems.class))), description = "Activates or deactivates RODA users", responses = {
@ApiResponse(responseCode = "204", description = "No Content"),
@ApiResponse(responseCode = "404", description = "Not found", content = @Content(schema = @Schema(implementation = ErrorResponseMessage.class)))})
Void changeActive(
@Parameter(name = "selectedItems", required = true, content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE)) SelectedItems<RODAMember> members,
@Parameter(description = "Is Active") @RequestParam(name = "active") Boolean active);
@Parameter(description = "True to change their status to active and False to change their status to deactivate") @RequestParam(name = "activate") Boolean activate);

@RequestMapping(path = "/delete", method = RequestMethod.POST)
@ResponseStatus(HttpStatus.NO_CONTENT)
Expand Down

0 comments on commit 9e43a4a

Please sign in to comment.