GET api/v1/lookup/cities/{stateId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| stateId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of City| Name | Description | Type | Additional information |
|---|---|---|---|
| CityAnsID | integer |
None. |
|
| CityName | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"cityAnsID": 1,
"cityName": "sample string 2"
},
{
"cityAnsID": 1,
"cityName": "sample string 2"
}
]
text/xml
Sample:
<ArrayOfCity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PMSBL.Entity">
<City>
<_x003C_CityAnsID_x003E_k__BackingField>1</_x003C_CityAnsID_x003E_k__BackingField>
<_x003C_CityName_x003E_k__BackingField>sample string 2</_x003C_CityName_x003E_k__BackingField>
</City>
<City>
<_x003C_CityAnsID_x003E_k__BackingField>1</_x003C_CityAnsID_x003E_k__BackingField>
<_x003C_CityName_x003E_k__BackingField>sample string 2</_x003C_CityName_x003E_k__BackingField>
</City>
</ArrayOfCity>