Vehicle List
Get All Vehicle Data
Responses
- 200
- 400
- 401
Success
application/json
Schema
Example (from schema)
Without Driver
With Driver1
Schema
- Array [
- ]
message string required
data object[]
id number required
companyId number required
vehicleTypeId number required
driverId number required
garageId number required
tonnage number required
volume number required
fuelEfficiency number required
fuelCapacity number required
odometer number required
status string required
imei string required
licensePlate string required
thermoType string required
boxType string required
chassisNumber string required
machineNumber string required
carrosserie string required
year number required
hullNo string required
driver1 Driver required
{
"message": "string",
"data": [
{
"id": 0,
"companyId": 0,
"vehicleTypeId": 0,
"driverId": 0,
"garageId": 0,
"tonnage": 0,
"volume": 0,
"fuelEfficiency": 0,
"fuelCapacity": 0,
"odometer": 0,
"status": "string",
"imei": "string",
"licensePlate": "string",
"thermoType": "string",
"boxType": "string",
"chassisNumber": "string",
"machineNumber": "string",
"carrosserie": "string",
"year": 0,
"hullNo": "string"
}
]
}
{
"message": "Success",
"data": [
{
"id": 12345,
"companyId": 1,
"vehicleTypeId": 123,
"driverId": 1,
"garageId": null,
"tonnage": null,
"volume": null,
"fuelEfficiency": null,
"fuelCapacity": null,
"odometer": null,
"status": "I",
"imei": null,
"licensePlate": "L 1231 TES",
"thermoType": null,
"boxType": null,
"chassisNumber": null,
"machineNumber": null,
"carrosserie": null,
"year": null,
"odometerEditedOn": null,
"hullNo": null,
"driver1": null
}
]
}
{
"message": "Success",
"data": [
{
"id": 12345,
"companyId": 1,
"vehicleTypeId": 123,
"driverId": 1,
"garageId": null,
"tonnage": null,
"volume": null,
"fuelEfficiency": null,
"fuelCapacity": null,
"odometer": null,
"status": "I",
"imei": null,
"licensePlate": "L 1231 TES",
"thermoType": null,
"boxType": null,
"chassisNumber": null,
"machineNumber": null,
"carrosserie": null,
"year": null,
"odometerEditedOn": null,
"hullNo": null,
"driver1": {
"fullname": "Joko"
}
}
]
}
Bad Request
application/json
Schema
Example (from schema)
Expired Token
Bad Token
Schema
code string
message string
detail string
{
"code": "string",
"message": "string",
"detail": "string"
}
{
"code": "E-V1/1-03",
"message": "An error occurred while executing query",
"detail": "Context creation failed: jwt expired"
}
{
"code": "E-V1/1-03",
"message": "An error occurred while executing query",
"detail": "Context creation failed: jwt malformed"
}
Unauthorized Request
application/json
Schema
Example (from schema)
Example
Schema
code string
message string
{
"code": "string",
"message": "string"
}
{
"code": "E-G1/1-01",
"message": "Authentication token is required"
}
Loading...