Skip to main content
Yosemite CrewDeveloper Docs

Notification API

On this page

Lets the mobile app list a pet parent's notifications and mark one as seen. Both routes are called by the mobile app and authenticated with the pet parent's SuperTokens session (requireMobileAuth).

Endpoints

GET /mobile

  • Auth: requireMobileAuth
  • Controller: NotificationController.listNotifications
  • Response: 401: keys authenticated, message, 404: keys message, 200: JSON, 500: keys message

POST /mobile/:notificationId/seen

  • Auth: requireMobileAuth
  • Params: notificationId
  • Controller: NotificationController.markAsSeen
  • Response: 400: keys message, 200: keys message, 500: keys message