GET api/Town/GetCities/{stateCode}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| stateCode | string |
Required |
Body Parameters
None.
Response Information
Resource Description
ResponseGetCitiesModel| Name | Description | Type | Additional information |
|---|---|---|---|
| data | Collection of CityModel |
None. |
|
| message | string |
None. |
|
| success | boolean |
None. |
|
| total | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"data": [
{
"Name": "sample string 1",
"CodeCVE": "sample string 2"
},
{
"Name": "sample string 1",
"CodeCVE": "sample string 2"
}
],
"message": "sample string 1",
"success": true,
"total": 3
}
application/xml, text/xml
Sample:
<ResponseGetCitiesModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UnderArmorAPI.Models">
<message>sample string 1</message>
<success>true</success>
<total>3</total>
<data>
<CityModel>
<CodeCVE>sample string 2</CodeCVE>
<Name>sample string 1</Name>
</CityModel>
<CityModel>
<CodeCVE>sample string 2</CodeCVE>
<Name>sample string 1</Name>
</CityModel>
</data>
</ResponseGetCitiesModel>