Get Notifications List
GET /client/notifications/
Use the GET /client/notifications/
endpoint to retrieve a list of all notifications for the client. Notifications may include updates, alerts, or important messages.
Parameters
This endpoint does not require any parameters.
Responses
200 OK
Description: The list of notifications was successfully retrieved.
Example Response:
[
{
"id": 1,
"header": "Mechanic on the Way",
"body": "Your assigned mechanic is on their way to your location.",
"image": "https://example.com/notification-image.jpg",
"created_at": "2024-11-17T10:30:00Z",
"created_by": "Admin"
},
{
"id": 2,
"header": "Service Request Accepted",
"body": "Your service request has been accepted by John Doe.",
"image": null,
"created_at": "2024-11-16T14:15:00Z",
"created_by": "System"
}
]
Last updated