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