GET api/v0/Vehicle/GetAllVehicles
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of VehicleContract| Name | Description | Type | Additional information |
|---|---|---|---|
| VehicleId | integer |
None. |
|
| PlateNumber | string |
None. |
|
| Description | string |
None. |
|
| Remarks | string |
None. |
|
| IsDisabled | boolean |
None. |
|
| AssignedDriverId | integer |
None. |
|
| Capacity | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"VehicleId": 1,
"PlateNumber": "sample string 2",
"Description": "sample string 3",
"Remarks": "sample string 4",
"IsDisabled": true,
"AssignedDriverId": 1,
"Capacity": 6.0
},
{
"VehicleId": 1,
"PlateNumber": "sample string 2",
"Description": "sample string 3",
"Remarks": "sample string 4",
"IsDisabled": true,
"AssignedDriverId": 1,
"Capacity": 6.0
}
]
application/xml, text/xml
Sample:
<ArrayOfVehicleContract xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.agrifoodatsolutions.com/FDService/v0/contracts/2017/01">
<VehicleContract>
<AssignedDriverId>1</AssignedDriverId>
<Capacity>6</Capacity>
<Description>sample string 3</Description>
<IsDisabled>true</IsDisabled>
<PlateNumber>sample string 2</PlateNumber>
<Remarks>sample string 4</Remarks>
<VehicleId>1</VehicleId>
</VehicleContract>
<VehicleContract>
<AssignedDriverId>1</AssignedDriverId>
<Capacity>6</Capacity>
<Description>sample string 3</Description>
<IsDisabled>true</IsDisabled>
<PlateNumber>sample string 2</PlateNumber>
<Remarks>sample string 4</Remarks>
<VehicleId>1</VehicleId>
</VehicleContract>
</ArrayOfVehicleContract>