mode=upcoming-slots
The upcoming-slots
query parameter search can be used to return slots for multiple facilities on a specific day, i.e. multiple facilities + one day + slots.
startDate
startDate
When using upcoming-slots
, the startDate[gte]
or startDate[lte]
parameter must be included. The results returned will contain time-based information pertaining to one specific day (the startDate
) and be ordered chronologically.
There are three behaviours to bear in mind when using startDate
:
When only
startDate[gte]
is used, the API will return slots from that time until the end of the day, e.g.startDate[gte]=3000-01-01T09:00:00Z
will return slots between09:00:00-23:59:59
on3000-01-01
;When only
startDate[lte]
is used, the API will return slots from the start of the day until that time, e.g.startDate[lte]=3000-01-01T13:30:00Z
will return slots between00:00:00-13:29:59
on3000-01-01
; andThe
startDate[gte]
andstartDate[lte]
, when used in combination, can only span one calendar day, i.e. it is not possible to include two different dates when using the Facilities API.
startDate
Examples
startDate
ExamplesThose
led
facilities;Within a
100
km radius of51.05602333,-2.423247080
;That have the activity
Tennis
; andAll available slots between
16:00:00-23:59:59
on3000-01-03
.
All of the above; except for
All available slots between
16:00:00-20:59:59
on3000-01-03
.
The example queries above will not generate any results. This is because the startDate
provided is outside of the Platform's 2-week API lookahead window.
id
s
id
sAn upcoming-slots
search will return two id
s for each FacilityUse
:
The
FacilityUse id
: this root URL, which looks like https://search.imin.co/facilities-api/v2/facility-uses/{identifier
}, will form the basis of theFacilityUse ByID
search.The
Slot id
: this is a URL that can be found in theFacilityUse
at theevent
array. EverySlot id
, which looks like https://search.imin.co/facilities-api/v2/slots/{event[].id
}, forms the basis of theSlot ByID
search.
The two id
s offer the following options:
i) The FacilityUse id
= one facility + multiple days + slots (FacilityUse ByID
Search).
ii)Slot By-ID
= one facility + one day + one slot (Slot ByID
Search)
Anupcoming-slots
search will always return an event
array, which will contain one or more Slot
s relevant to the startDate
included in the API call.
Last updated