Retrieve Mechanic Requests

GET /client/mechanic-requests/

Use the GET /client/mechanic-requests/ endpoint to retrieve a list of service requests that match a mechanic. This provides an overview of potential requests for a mechanic to consider.


Parameters

This endpoint does not require parameters.


Responses

200 OK

Description: A list of service requests matching the mechanic was successfully retrieved.

Example Response:

[
  {
    "request_id": "req123",
    "client_name": "Jane Smith",
    "service_type": "Oil Change",
    "location": "123 Main Street",
    "time_requested": "2024-11-17T12:34:56Z",
    "status": "Pending"
  },
  {
    "request_id": "req124",
    "client_name": "Mike Johnson",
    "service_type": "Tire Replacement",
    "location": "456 Elm Avenue",
    "time_requested": "2024-11-17T14:20:00Z",
    "status": "Pending"
  }
]

Last updated