Notifications Controller
@RestController
@RequestMapping(value = ["/api/v1/notifications" ] )
Controller with endpoints to work with notifications
Functions
Link copied to clipboard
@GetMapping(value = ["/new" ] )
GET endpoint for indicating whether there is any unread notification
Link copied to clipboard
@DeleteMapping(value = ["{notificationId}" ] )
DELETE endpoint for deleting specified notification
Link copied to clipboard
@PostMapping(value = ["/delete" ] )
POST endpoint for deleting notifications
Link copied to clipboard
@GetMapping
GET endpoint for listing all notifications
Link copied to clipboard
Exception handler
Link copied to clipboard
@PostMapping
POST endpoint for marking notifications as read