GET api/City/CountyCityByCityID/{id}
Get a city/county pair by the city id
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
id of the city |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
uspWDTFLuCityAndCountySelectByCityID_Result| Name | Description | Type | Additional information |
|---|---|---|---|
| CountyID | integer |
None. |
|
| CountyName | string |
None. |
|
| CityID | integer |
None. |
|
| CityName | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"CountyID": 1,
"CountyName": "sample string 2",
"CityID": 3,
"CityName": "sample string 4"
}
text/html
Sample:
{"CountyID":1,"CountyName":"sample string 2","CityID":3,"CityName":"sample string 4"}
application/xml, text/xml
Sample:
<uspWDTFLuCityAndCountySelectByCityID_Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TrainingFundREST._DAL"> <CityID>3</CityID> <CityName>sample string 4</CityName> <CountyID>1</CountyID> <CountyName>sample string 2</CountyName> </uspWDTFLuCityAndCountySelectByCityID_Result>