GET api/v{version}/LocationTypes
Gets the list of all available location types in the paratransit application.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| version |
The requested API version |
string |
Required Default value is 2.0 |
Body Parameters
None.
Response Information
Resource Description
Returns the list of location types.
Collection of LocationType| Name | Description | Type | Additional information |
|---|---|---|---|
| Code |
Gets or sets the code that can be used to identify the location type. |
string |
None. |
| Name |
Gets or sets the friendly name of the location type. |
string |
None. |
Response Formats
application/json, text/json, application/problem+json
Sample:
[
{
"code": "sample string 1",
"name": "sample string 2"
},
{
"code": "sample string 1",
"name": "sample string 2"
}
]
application/xml, text/xml
Sample:
<ArrayOfLocationType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TS.DR.Resources">
<LocationType>
<Code>sample string 1</Code>
<Name>sample string 2</Name>
</LocationType>
<LocationType>
<Code>sample string 1</Code>
<Name>sample string 2</Name>
</LocationType>
</ArrayOfLocationType>