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