GET api/Location/GetCityByCode?citycodePostil={citycodePostil}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| citycodePostil | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
CityModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| CodePostil | integer |
None. |
|
| Name | string |
None. |
|
| EnglishName | string |
None. |
|
| CityType | integer |
None. |
|
| ZipCode5 | integer |
None. |
|
| ZipCode7 | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"CodePostil": 2,
"Name": "sample string 3",
"EnglishName": "sample string 4",
"CityType": 5,
"ZipCode5": 6,
"ZipCode7": 7
}
application/xml, text/xml
Sample:
<CityModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emalogic.Locations.Services.Api.Models.Location"> <CityType>5</CityType> <CodePostil>2</CodePostil> <EnglishName>sample string 4</EnglishName> <Id>1</Id> <Name>sample string 3</Name> <ZipCode5>6</ZipCode5> <ZipCode7>7</ZipCode7> </CityModel>