GET api/CSK/cityState/{CountryCode}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| CountryCode | string |
Required |
Body Parameters
None.
Response Information
Resource Description
CityStateResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| CityStateProvince | Collection of StateProvinceModel |
None. |
|
| StatusCode | integer |
None. |
|
| ErrorMessage | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"CityStateProvince": [
{
"ID": 1,
"Code": "sample string 2",
"Name": "sample string 3",
"CountryCode": "sample string 4",
"CountryName": "sample string 5",
"Cities": [
{
"ID": 1,
"City": "sample string 2",
"StateCode": "sample string 3"
},
{
"ID": 1,
"City": "sample string 2",
"StateCode": "sample string 3"
}
]
},
{
"ID": 1,
"Code": "sample string 2",
"Name": "sample string 3",
"CountryCode": "sample string 4",
"CountryName": "sample string 5",
"Cities": [
{
"ID": 1,
"City": "sample string 2",
"StateCode": "sample string 3"
},
{
"ID": 1,
"City": "sample string 2",
"StateCode": "sample string 3"
}
]
}
],
"StatusCode": 1,
"ErrorMessage": "sample string 2"
}
application/xml, text/xml
Sample:
<CityStateResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TMK.CSK.API.Models">
<ErrorMessage>sample string 2</ErrorMessage>
<StatusCode>1</StatusCode>
<CityStateProvince>
<StateProvinceModel>
<Cities>
<CityStateModel>
<City>sample string 2</City>
<ID>1</ID>
<StateCode>sample string 3</StateCode>
</CityStateModel>
<CityStateModel>
<City>sample string 2</City>
<ID>1</ID>
<StateCode>sample string 3</StateCode>
</CityStateModel>
</Cities>
<Code>sample string 2</Code>
<CountryCode>sample string 4</CountryCode>
<CountryName>sample string 5</CountryName>
<ID>1</ID>
<Name>sample string 3</Name>
</StateProvinceModel>
<StateProvinceModel>
<Cities>
<CityStateModel>
<City>sample string 2</City>
<ID>1</ID>
<StateCode>sample string 3</StateCode>
</CityStateModel>
<CityStateModel>
<City>sample string 2</City>
<ID>1</ID>
<StateCode>sample string 3</StateCode>
</CityStateModel>
</Cities>
<Code>sample string 2</Code>
<CountryCode>sample string 4</CountryCode>
<CountryName>sample string 5</CountryName>
<ID>1</ID>
<Name>sample string 3</Name>
</StateProvinceModel>
</CityStateProvince>
</CityStateResponse>