Skip to content
saigesp edited this page Jul 19, 2017 · 1 revision

API Methods

In construction

GET

Apartment by ID

/api/index/[id]

Retrieve a single apartment by ID.

Example: /api/index/123456

Apartments by square coords

/api/index/search/?[square coords]

Retrieve apartments wich are inside the given box.

Example: /api/index/search/?ne_lat=1.2345&ne_lng=1.2345&sw_lat=0.1234&sw_lng=0.1234

PUT

/api/index Post an apartment to db. See index model for data model.

Clone this wiki locally