add code 404 for removeAttender and rateEvent methods
@@ -200,7 +200,8 @@ public class EventsController {
@ApiResponses(value = {
@ApiResponse(code = 200, message = HttpStatuses.OK),
@ApiResponse(code = 400, message = HttpStatuses.BAD_REQUEST),
- @ApiResponse(code = 401, message = HttpStatuses.UNAUTHORIZED)
+ @ApiResponse(code = 401, message = HttpStatuses.UNAUTHORIZED),
+ @ApiResponse(code = 404, message = HttpStatuses.NOT_FOUND)
})
@DeleteMapping("/removeAttender/{eventId}")
public ResponseEntity<Object> removeAttender(@PathVariable Long eventId, @ApiIgnore Principal principal) {
@@ -217,7 +218,8 @@ public class EventsController {
@ApiResponses(value = {
@ApiResponse(code = 200, message = HttpStatuses.OK),
@ApiResponse(code = 400, message = HttpStatuses.BAD_REQUEST),
- @ApiResponse(code = 401, message = HttpStatuses.UNAUTHORIZED)
+ @ApiResponse(code = 401, message = HttpStatuses.UNAUTHORIZED),
+ @ApiResponse(code = 404, message = HttpStatuses.NOT_FOUND)
})
@PostMapping("/rateEvent/{eventId}/{grade}")
public ResponseEntity<Object> rateEvent(@PathVariable Long eventId, @PathVariable int grade,
