GET api/Cities
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of City| Name | Description | Type | Additional information |
|---|---|---|---|
| CityId | integer |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| StateId | integer |
None. |
|
| StatusTypeId | integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"CityId": 1,
"Name": "sample string 2",
"Description": "sample string 3",
"StateId": 1,
"StatusTypeId": 1
},
{
"CityId": 1,
"Name": "sample string 2",
"Description": "sample string 3",
"StateId": 1,
"StatusTypeId": 1
}
]
application/xml, text/xml
Sample:
<ArrayOfCity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GNGroup.Models">
<City>
<CityId>1</CityId>
<Description>sample string 3</Description>
<Name>sample string 2</Name>
<StateId>1</StateId>
<StatusTypeId>1</StatusTypeId>
</City>
<City>
<CityId>1</CityId>
<Description>sample string 3</Description>
<Name>sample string 2</Name>
<StateId>1</StateId>
<StatusTypeId>1</StatusTypeId>
</City>
</ArrayOfCity>