GET api/vehicle/{licensePlate}/{branchId}
Get a vehicle by license plate
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| licensePlate | string |
Required |
|
| branchId | integer |
Required |
Body Parameters
None.
Remarks
None.
Example
None.
Response Information
Resource Description
VehicleResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| LicensePlate | string |
None. |
|
| Model | string |
None. |
|
| Dimensions | Collection of VehicleDimensionResponse |
None. |
Response Formats
application/json, text/json
Sample:
{
"LicensePlate": "sample string 1",
"Model": "sample string 2",
"Dimensions": [
{
"SectionWidth": 1.0,
"AspectRatio": 1.0,
"Diameter": 1.0,
"StandardDimension": true
},
{
"SectionWidth": 1.0,
"AspectRatio": 1.0,
"Diameter": 1.0,
"StandardDimension": true
}
]
}
application/xml, text/xml
Sample:
<VehicleResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Vehicle">
<Dimensions>
<VehicleDimensionResponse>
<AspectRatio>1</AspectRatio>
<Diameter>1</Diameter>
<SectionWidth>1</SectionWidth>
<StandardDimension>true</StandardDimension>
</VehicleDimensionResponse>
<VehicleDimensionResponse>
<AspectRatio>1</AspectRatio>
<Diameter>1</Diameter>
<SectionWidth>1</SectionWidth>
<StandardDimension>true</StandardDimension>
</VehicleDimensionResponse>
</Dimensions>
<LicensePlate>sample string 1</LicensePlate>
<Model>sample string 2</Model>
</VehicleResponse>