Class NotificationController

java.lang.Object
callofproject.dev.service.notification.controller.NotificationController

@RestController @RequestMapping("api/notification") public class NotificationController extends Object
  • Constructor Details

    • NotificationController

      public NotificationController(NotificationService notificationService)
      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.