Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.44 KB

city.md

File metadata and controls

44 lines (33 loc) · 1.44 KB

City APIs

Resource path param: /city

APIs

METHOD URL AUTH USAGE
GET /city no List all the active cities.

GET /city

List all the active cities.

Request

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

Response

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
}