Retrieve All Mechanics

GET /user/users/mechanics/

The GET /user/users/mechanics/ endpoint allows an admin to retrieve a list of all mechanic users.


Parameters

Name

Type

In

Description

None

N/A

N/A

This endpoint does not require any parameters.


Responses

HTTP Code

Description

200

Successfully retrieved the list of mechanics.


Example Response

[
  {
    "id": 1,
    "name": "John Doe",
    "email": "johndoe@example.com",
    "phone": "+123456789",
    "car_specialities": ["Toyota", "Honda"],
    "services": ["Oil Change", "Brake Repair"],
    "workshop_location": "123 Auto Street, Mechanicville",
    "profile_pic": "https://example.com/profile_pic.jpg",
    "rating": 4.5
  },
  {
    "id": 2,
    "name": "Jane Smith",
    "email": "janesmith@example.com",
    "phone": "+987654321",
    "car_specialities": ["Ford", "Chevrolet"],
    "services": ["Tire Replacement", "Battery Check"],
    "workshop_location": "456 Repair Avenue, Fixit City",
    "profile_pic": "https://example.com/profile_pic2.jpg",
    "rating": 4.8
  }
]

Last updated