GET /api/locations

Description

Get all locations registered in system

Parameters

term

String. Optional. Search term.

startdate

Date. String on ISO-format. Optional. Restrict result to only those who are available in the time range given by start and end.

enddate

Date. String on ISO-format. Optional. Restrict result to only those who are available in the time range given by start and end.

minimum_capacity

Int. Optional. Restrict result to those who have a registered capacity at or higher than this.

sw_latitude

Float. Latitude for the south west corner of area to search for locations in.

sw_longitude

Float. Longitude for the south west corner of area to search for locations in.

ne_latitude

Float. Latitude for the north east corner of area to search for locations in.

ne_longitude

Float. Longitude for the north east corner of area to search for locations in.

view

String. Optional. "full" or "simple" view of object.

Return

Array of Location objects

Security

All logged in users

GET /api/locations/[location_id]

Description

Get location object.

Parameters

location_id

Int. Unique ID for location object.

view

String. Optional. "full" or "simple" view of object.

Return

Single Location object

Security

All logged in users

GET /api/locations/[location_id]/events

Description

Get events for this location.

Parameters

location_id

Int. Unique ID for location object.

startdate

Date. String on ISO-format. Required. Return only events within date range.

enddate

Date. String on ISO-format. Required. Return only events within date range.

view

String. Optional. "full" or "simple" view of object.

Return

Array of Event objects

Security

All logged in users