class UserController {

    @ApiOperation(value = "Get all available email notifications statuses")
    @ApiResponses(value = {
            @ApiResponse(code = 200, message = HttpStatuses.OK, response = EmailNotification[].class),
            @ApiResponse(code = 303, message = HttpStatuses.SEE_OTHER),
            @ApiResponse(code = 400, message = HttpStatuses.BAD_REQUEST)
    })
    @GetMapping("emailNotifications")
    public ResponseEntity<List<EmailNotification>> getEmailNotifications() {
        return ResponseEntity.status(HttpStatus.OK).body(userService.getEmailNotificationsStatuses());
    }

}