Get Mechanic Availability
GET /client/get-availability/
Use the GET /client/get-availability/
endpoint to manually check a mechanic's active availability status. You can query for mechanics who are currently available (isAvailable=true
) or unavailable (isAvailable=false
).
Parameters
This endpoint does not require specific query parameters.
However, you can include the isAvailable
query parameter in your request URL to filter mechanics based on their availability status.
Example Query:
To check for available mechanics:
GET /client/get-availability/?isAvailable=true
To check for unavailable mechanics:
GET /client/get-availability/?isAvailable=false
Responses
200 OK
Description: The availability status of mechanics was successfully retrieved.
Example Response:
{
"mechanics": [
{
"mechanic_id": "mech001",
"name": "Jane Doe",
"isAvailable": true
},
{
"mechanic_id": "mech002",
"name": "John Smith",
"isAvailable": false
}
],
"message": "Mechanic availability status retrieved successfully."
}
Last updated