GET api/vehicles/vehicletypes
Get vehicle types
Request Information
Authentication
This method requires user authentication
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
ListWrapperOfVehicleType| Name | Description | Type | Additional information |
|---|---|---|---|
| Total | integer |
None. |
|
| Elements | Collection of VehicleType |
None. |
Response Formats
application/json, text/json
Sample:
{
"Total": 1,
"Elements": [
{
"VehicleTypeId": 1,
"VehicleTypeName": "sample string 2"
},
{
"VehicleTypeId": 1,
"VehicleTypeName": "sample string 2"
}
]
}
Internal Error Codes
-
106: ResourceNotFound
(The requested resource was not found., NotFound) -
100: MissingRequiredHeader
(Invalid request format. A required HTTP header was not specified., BadRequest) -
118: InvalidHeaderValue
(The value provided for one of the HTTP headers was not in the correct format., BadRequest) -
199: UnknownError
(Internal server error., InternalServerError)