GET api/VehicleTypes?vehiclemanufacturer={vehiclemanufacturer}
Gets a list of active vehicletypes
Requires Authorization
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| vehiclemanufacturer |
Optional parameter. If specified returns all vehicletypes that is linked to submitted manufacturer otherwise it returns all vehicletypes. |
string |
Default value is an empty string |
Body Parameters
None.
Response Information
Resource Description
A IHttpActionResult with vehicletypes
Response codes
200 Ok
400 Bad Request
401 Unauthorized
404 Not Found
500 Internal Server Error
503 Service Unavailable VehicleType
| Name | Description | Type | Additional information |
|---|---|---|---|
| Code |
Code of the vehicle type Example: PB |
string |
None. |
| Name |
Namme of the vehicle type Example: Personbil |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Code": "sample string 4",
"Name": "sample string 5"
}
application/xml, text/xml
Sample:
<VehicleType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParkingDataService.Common.DTO"> <Code>sample string 4</Code> <Name>sample string 5</Name> </VehicleType>