GET api/city?query={query}&country={country}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| query | string |
Required |
|
| country | Country |
Default value is 19 |
Body Parameters
None.
Response Information
Resource Description
Collection of City| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
None. |
|
| ZipCode | string |
None. |
|
| Country | Country |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"id": 1,
"name": "sample string 2",
"zipCode": "sample string 3",
"country": "AD"
},
{
"id": 1,
"name": "sample string 2",
"zipCode": "sample string 3",
"country": "AD"
}
]
application/xml, text/xml
Sample:
<ArrayOfCity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Skarabee.Fuse.OM">
<City>
<Country>AD</Country>
<Id>1</Id>
<Name>sample string 2</Name>
<ZipCode>sample string 3</ZipCode>
</City>
<City>
<Country>AD</Country>
<Id>1</Id>
<Name>sample string 2</Name>
<ZipCode>sample string 3</ZipCode>
</City>
</ArrayOfCity>