Skip to main content

Get list of vehicles

GET 

/vehicles

Retrieves all vehicles registered in the system with pagination. It can be filtered by status using the query parameter ?status=[active|maintenance|out_of_service]. Pagination parameters:

  • page: Page number (default 1)
  • limit: Limit of elements per page (default 10)

Example response:

[
{
"id": "5f8d0d55b54764421b7156c3",
"model": "Volvo FH 540",
"licensePlate": "5678XYZ",
"status": "active",
"maxWeight": 40.0,
"dimensions": {
"length": 16.5,
"width": 2.55,
"height": 4.0
}
}
]

Request

Responses

List of vehicles retrieved successfully