Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] (PHP) [FIX](PHP)Refactoring Notifications API endpoint to Retrieve User's Notifications (Read or Unread) #578

Open
devMuhammad05 opened this issue Aug 24, 2024 · 0 comments
Assignees

Comments

@devMuhammad05
Copy link
Contributor

Description

This is for refactoring the notification API endpoint for retrieving user's notification

Route

GET: /api/v1/notifications

Response Body

200 OK

{
  "data": {
    "total_notification_count": 0,
    "total_unread_notification_count": 0,
    "notifications": [
      {
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "user_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "is_read": true,
        "message": "string",
        "created_at": "2024-08-24T13:40:04.921Z",
        "updated_at": "2024-08-24T13:40:04.921Z"
      }
    ]
  },
  "message": "string",
  "status_code": 0
}

400 BAD REQUEST

{
  "data": "string",
  "error": "string",
  "message": "string",
  "status_code": 0
}

401 UNAUTHORIZED

{
  "data": "string",
  "error": "string",
  "message": "string",
  "status_code": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant