GET api/ConnectedCar/Cities/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
CityDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| city_code | integer |
None. |
|
| city_name | string |
None. |
|
| country_name | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"city_code": 1,
"city_name": "sample string 2",
"country_name": "sample string 3"
}
application/xml, text/xml
Sample:
<CityDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/connectedcarfleet_backend.Models"> <city_code>1</city_code> <city_name>sample string 2</city_name> <country_name>sample string 3</country_name> </CityDTO>