GET api/City?countryId={countryId}&term={term}&resultItemsAmount={resultItemsAmount}
Get Locations (list of cities) by Country Id
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
countryId |
Id for the country that you request content for. Translation in responses will depend on this param |
integer |
Required You can get countryId in GET api/Country |
term |
The part of City to search for |
string |
None. |
resultItemsAmount |
Amount of result items to return |
integer |
Default value is 10 |
Body Parameters
None.
Response Information
Locations
Name | Description | Type | Additional information |
---|---|---|---|
GeoLocationId |
Geo Location Id |
integer |
None. |
Name |
Location Name |
string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "geoLocationId": 1, "name": "sample string 2" }, { "geoLocationId": 1, "name": "sample string 2" } ]