GET api/Vehicle?token={token}&companyId={companyId}
list of vehicles belonging to the driver and the company
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| token | generated token on login |
Define this parameter in the request URI. |
| companyId | company id |
Define this parameter in the request URI. |
Response Information
Response body formats
application/json, text/json
Sample:
[
{
"Id": 1,
"Type": "sample string 2",
"Make": "sample string 3",
"Year": "sample string 4",
"Model": "sample string 5",
"LicensePlateNumber": "sample string 6"
},
{
"Id": 1,
"Type": "sample string 2",
"Make": "sample string 3",
"Year": "sample string 4",
"Model": "sample string 5",
"LicensePlateNumber": "sample string 6"
},
{
"Id": 1,
"Type": "sample string 2",
"Make": "sample string 3",
"Year": "sample string 4",
"Model": "sample string 5",
"LicensePlateNumber": "sample string 6"
}
]
application/xml, text/xml
Sample:
<ArrayOfVehicle xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PardDriverWebService.Models">
<Vehicle>
<Id>1</Id>
<LicensePlateNumber>sample string 6</LicensePlateNumber>
<Make>sample string 3</Make>
<Model>sample string 5</Model>
<Type>sample string 2</Type>
<Year>sample string 4</Year>
</Vehicle>
<Vehicle>
<Id>1</Id>
<LicensePlateNumber>sample string 6</LicensePlateNumber>
<Make>sample string 3</Make>
<Model>sample string 5</Model>
<Type>sample string 2</Type>
<Year>sample string 4</Year>
</Vehicle>
<Vehicle>
<Id>1</Id>
<LicensePlateNumber>sample string 6</LicensePlateNumber>
<Make>sample string 3</Make>
<Model>sample string 5</Model>
<Type>sample string 2</Type>
<Year>sample string 4</Year>
</Vehicle>
</ArrayOfVehicle>