Open Muhammad235 opened 3 weeks ago
This is for refactoring the notification API endpoint for retrieving user's notification
GET: /api/v1/notifications
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
Description
This is for refactoring the notification API endpoint for retrieving user's notification
Route
Response Body
200 OK
400 BAD REQUEST
401 UNAUTHORIZED