GET api/City?countryId={countryId}&term={term}&resultItemsAmount={resultItemsAmount}

Get Locations (list of cities) by Country Id

Request Information

URI Parameters

NameDescriptionTypeAdditional 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

NameDescriptionTypeAdditional 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"
  }
]