Get Vehicle Detail
GET/vehicles/:id
Get a one vehicle by id
Request
Path Parameters
id stringrequired
Query Parameters
search string
search by vehicle plate
Header Parameters
Authorization stringrequired
Token de Auth del Usuario
Responses
- 200
- 400
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
- Array [
- ]
status integer
data object
docs object[]
_id string
cargo_type string[]
vehicle_type string
image string
itv string
shipping_type string
plate string
totalDocs integer
limit integer
totalPages integer
page integer
pagingCounter integer
hasPrevPage boolean
hasNextPage boolean
prevPage integer
nextPage integer
{
"status": 0,
"data": {
"docs": [
{
"_id": "65e1f94fc5953704852eb5a3",
"cargo_type": [
"back",
"lateral"
],
"vehicle_type": "rt",
"image": "",
"itv": "",
"shipping_type": "dry",
"plate": "0017bbb"
}
],
"totalDocs": 0,
"limit": 0,
"totalPages": 0,
"page": 0,
"pagingCounter": 0,
"hasPrevPage": true,
"hasNextPage": true,
"prevPage": 0,
"nextPage": 0
}
}
{
"status": 200,
"data": {
"docs": [
{
"_id": "650af84f06aa57aaebab1ac5",
"cargo_type": [
"up"
],
"vehicle_type": "r3c",
"image": "6464b3f4bacdaf24d1f7fa22/image/20230920/1695217741498--a.png",
"itv": "6464b3f4bacdaf24d1f7fa22/itv/20230920/1695217741511--iru-cmr-model-2007-en-fr.pdf",
"shipping_type": "fresh",
"deleted": false,
"fresh_cargo_temp": 12,
"plate": "123123123",
"createdAt": "2023-09-20T13:49:03.005Z",
"updatedAt": "2023-09-20T13:49:03.005Z"
}
],
"totalDocs": 1,
"limit": 10,
"totalPages": 1,
"page": 1,
"pagingCounter": 1,
"hasPrevPage": false,
"hasNextPage": false,
"prevPage": 1,
"nextPage": 1
}
}
Bad Request
Loading...