Class NotificationController
java.lang.Object
callofproject.dev.service.notification.controller.NotificationController
@RestController
@RequestMapping("api/notification")
public class NotificationController
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionNotificationController
(NotificationService notificationService) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Object>
findAllNotificationsByNotificationOwnerIdAndSortCreatedAt
(UUID userId, int page) Find all notifications by notification owner id and sort created at.
-
Constructor Details
-
NotificationController
Constructor.- Parameters:
notificationService
- represent the notification service.
-
-
Method Details
-
findAllNotificationsByNotificationOwnerIdAndSortCreatedAt
@GetMapping("find/all/sort/created-at") public org.springframework.http.ResponseEntity<Object> findAllNotificationsByNotificationOwnerIdAndSortCreatedAt(@RequestParam("uid") UUID userId, @RequestParam("p") int page) Find all notifications by notification owner id and sort created at.- Parameters:
userId
- represent the user id.page
- represent the page.- Returns:
- ResponseEntity.
-