GET api/v1/{tokenClient}/vehicles
Gets all vehicles for standard API.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| tokenClient |
The token client. |
globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of VehicleApiDto| Name | Description | Type | Additional information |
|---|---|---|---|
| vehicleExternalCode |
ID véhicule. |
globally unique identifier |
None. |
| vehicleName |
Nom du véhicule. |
string |
None. |
| VIN |
VIN véhicule. |
string |
None. |
| registration |
Immatriculation véhicule. |
string |
None. |
| resourceMake |
Marque de véhicule. |
string |
None. |
| resourceModel |
Modèle de véhicule. |
string |
None. |
| active |
Etat de véhicule. |
boolean |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"vehicleExternalCode": "8dd497eb-fac3-4751-9d8a-b856ad7f92b0",
"vehicleName": "sample string 2",
"VIN": "sample string 3",
"registration": "sample string 4",
"resourceMake": "sample string 5",
"resourceModel": "sample string 6",
"active": true
},
{
"vehicleExternalCode": "8dd497eb-fac3-4751-9d8a-b856ad7f92b0",
"vehicleName": "sample string 2",
"VIN": "sample string 3",
"registration": "sample string 4",
"resourceMake": "sample string 5",
"resourceModel": "sample string 6",
"active": true
}
]
application/xml, text/xml
Sample:
<ArrayOfVehicleDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/B2Fleet.Web.Models.WebApi">
<VehicleDto>
<VIN>sample string 3</VIN>
<active>true</active>
<registration>sample string 4</registration>
<resourceMake>sample string 5</resourceMake>
<resourceModel>sample string 6</resourceModel>
<vehicleExternalCode>8dd497eb-fac3-4751-9d8a-b856ad7f92b0</vehicleExternalCode>
<vehicleName>sample string 2</vehicleName>
</VehicleDto>
<VehicleDto>
<VIN>sample string 3</VIN>
<active>true</active>
<registration>sample string 4</registration>
<resourceMake>sample string 5</resourceMake>
<resourceModel>sample string 6</resourceModel>
<vehicleExternalCode>8dd497eb-fac3-4751-9d8a-b856ad7f92b0</vehicleExternalCode>
<vehicleName>sample string 2</vehicleName>
</VehicleDto>
</ArrayOfVehicleDto>