Resource path param: /city
METHOD | URL | AUTH | USAGE |
---|---|---|---|
GET | /city |
no | List all the active cities. |
List all the active cities.
MODE | KEY | TYPE | OPTIONAL | DESCRIPTION |
---|---|---|---|---|
QUERY | offset | string | yes | The offset for pagination. Ref: Pagination - Request Params |
QUERY | limit | int | yes | The limit for pagination. Ref: Pagination - Request Params |
Object: city
Response Example
{
"items": [
{
"code": "NEW_YORK",
"name": "New York",
"image": "https://cdn-imgix.headout.com/cities/new-york/images/mobile/morning.jpg"
}
],
"nextUrl": "https://www.headout.com/api/public/v1/city?offset=21,limit=20",
"prevUrl": "https://www.headout.com/api/public/v1/city?offset=0,limit=20",
"total": 100,
"nextOffset": 21
}