Skip to content

Commit

Permalink
refactor Controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladik-gif committed Oct 29, 2024
1 parent ab0ad37 commit 01739b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ public class ChangePasswordController {
private static final String PASSWORD_RESTORE = "/password/restore";

@Operation(summary = "Change to new password", responses = {
@ApiResponse(responseCode = "200", description = SUCCESSFULLY_CHANGING_PASSWORD,
content = @Content),
@ApiResponse(responseCode = "200", description = SUCCESSFULLY_CHANGING_PASSWORD),
@ApiResponse(responseCode = "400", description = INVALID_OLD_PASSWORD,
content = @Content(schema = @Schema(implementation = ApiErrorResponseDto.class)))
})
Expand All @@ -40,8 +39,7 @@ public void changePassword(@Valid @RequestBody ChangePasswordDto request) {
}

@Operation(summary = "Send email to restore password", responses = {
@ApiResponse(responseCode = "200", description = SUCCESSFULLY_SEND_REQUEST_RESTORE_PASSWORD,
content = @Content),
@ApiResponse(responseCode = "200", description = SUCCESSFULLY_SEND_REQUEST_RESTORE_PASSWORD),
@ApiResponse(responseCode = "400", description = ERR_SENDING_EMAIL,
content = @Content(schema = @Schema(implementation = ApiErrorResponseDto.class)))
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ public void reportMessage(@PathVariable UUID id) {
}

@Operation(summary = "Mark a message as read", responses = {
@ApiResponse(responseCode = "200", description = SUCCESSFULLY,
content = @Content),
@ApiResponse(responseCode = "200", description = SUCCESSFULLY),
@ApiResponse(responseCode = "400", description = MESSAGE_HAS_ALREADY_REPORTED,
content = @Content(schema = @Schema(implementation = ApiErrorResponseDto.class))),
@ApiResponse(responseCode = "404", description = MESSAGE_NOT_FOUND,
Expand Down

0 comments on commit 01739b8

Please sign in to comment.