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