get-sport-complex-facilities-booking-all 2019-01-09T15:14:33+08:00

GET /service/facilities/sport_complex_facilities_booking/all

Return all sport complex facilities booking records.

Resource URL

https://api.data.um.edu.mo/service/facilities/sport_complex_facilities_booking/v1.0.0/all

Resource Information

Response formatJSON
Requires authorization?Yes
Rate limited?Yes

Parameters

ParameterRelated FieldRequiredDescriptionTypeFilter TypeExample
place_codeplaceCodeoptionalIdentity code represents the sport complex facilitiesquerysimplePAV
booking_statusbookingStatusoptionalBooking status:  A, U, R, H, O, X, F, P, or N

Available (A)The time slot is available for booking
Free Use (U)If the time slot is not booked, eligible users can use the court for free, if the available time slot has been marked for usages, the status of the time slot will become free use.
Reserved (R)The time slot has been reserved for somebody.
Hold (H)The time slot has been held.
Occupied (O)The time slot has been booked.
Closed (X)The time slot is not open for booking
Not Available Due to Dependency (F or P)The time slot is not available for booking because of courts dependency.
Not Available Due to Priority (N)The time slot is not available for booking because of courts priority.
querysimpleA
date_frombookingDateoptionalDatetime, in UTC+08:00 (inclusive)queryrange2018-08-25
date_tobookingDateoptionalDatetime, in UTC+08:00 (inclusive)queryrange2018-08-31
time_fromtimeSlotoptionalBooking start time, 1 – 24 represents 24 hours in a dayqueryrange9
time_totimeSlotoptionalBooking end time, 1 – 24 represents 24 hours in a dayqueryrange10

Example Request

https://api.data.um.edu.mo/service/facilities/sport_complex_facilities_booking/v1.0.0/all?place_code=HBC3&date_from=2018-08-25&date_to=2018-08-31&time_from=9&time_to=10

(Example to retrieve all booking records of sport complex facilities ‘HBC3’ from 2018/08/25 to 2018/08/25 with time slot between 09:00 to 10:00)

Example Response

Top 100 records will be returned.

{ "_embedded": [
{"_id":"5c359adeedcba302d05dcf49","bookingID":81081971,"bookingDate":"2018-08-30T00:00:00+08:00","placeCode":"HBC3","timeSlot":10,"bookingStatus":"F","lastModifiedDate":"2018-08-30T21:58:19+08:00"},{"_id":"5c359adeedcba302d05dcf45","bookingID":81081970,"bookingDate":"2018-08-30T00:00:00+08:00","placeCode":"HBC3","timeSlot":9,"bookingStatus":"F","lastModifiedDate":"2018-08-30T21:57:42+08:00"},{"_id":"5c359a8bedcba302d05896c7","bookingID":81081922,"bookingDate":"2018-08-27T00:00:00+08:00","placeCode":"HBC3","timeSlot":9,"bookingStatus":"A","lastModifiedDate":"2018-07-27T11:15:29+08:00"},{"_id":"5c359a8bedcba302d05896b9","bookingID":81081923,"bookingDate":"2018-08-27T00:00:00+08:00","placeCode":"HBC3","timeSlot":10,"bookingStatus":"A","lastModifiedDate":"2018-07-27T11:15:29+08:00"},{"_id":"5c359a86edcba302d0584af5","bookingID":81081891,"bookingDate":"2018-08-25T00:00:00+08:00","placeCode":"HBC3","timeSlot":10,"bookingStatus":"R","lastModifiedDate":"2018-05-09T15:56:02+08:00"},{"_id":"5c359a86edcba302d0584af4","bookingID":81081890,"bookingDate":"2018-08-25T00:00:00+08:00","placeCode":"HBC3","timeSlot":9,"bookingStatus":"R","lastModifiedDate":"2018-05-09T15:56:02+08:00"},{"_id":"5c359a6aedcba302d0567740","bookingID":81081987,"bookingDate":"2018-08-31T00:00:00+08:00","placeCode":"HBC3","timeSlot":10,"bookingStatus":"A","lastModifiedDate":"2017-08-01T06:30:00+08:00"},{"_id":"5c359a6aedcba302d056773f","bookingID":81081986,"bookingDate":"2018-08-31T00:00:00+08:00","placeCode":"HBC3","timeSlot":9,"bookingStatus":"A","lastModifiedDate":"2017-08-01T06:30:00+08:00"},{"_id":"5c359a69edcba302d0566278","bookingID":81081907,"bookingDate":"2018-08-26T00:00:00+08:00","placeCode":"HBC3","timeSlot":10,"bookingStatus":"X","lastModifiedDate":"2017-08-01T06:30:00+08:00"},{"_id":"5c359a69edcba302d0566277","bookingID":81081906,"bookingDate":"2018-08-26T00:00:00+08:00","placeCode":"HBC3","timeSlot":9,"bookingStatus":"X","lastModifiedDate":"2017-08-01T06:30:00+08:00"},{"_id":"5c359a68edcba302d056611a","bookingID":81081955,"bookingDate":"2018-08-29T00:00:00+08:00","placeCode":"HBC3","timeSlot":10,"bookingStatus":"A","lastModifiedDate":"2017-08-01T06:30:00+08:00"},{"_id":"5c359a68edcba302d0566119","bookingID":81081954,"bookingDate":"2018-08-29T00:00:00+08:00","placeCode":"HBC3","timeSlot":9,"bookingStatus":"A","lastModifiedDate":"2017-08-01T06:30:00+08:00"},{"_id":"5c359a68edcba302d0566115","bookingID":81081939,"bookingDate":"2018-08-28T00:00:00+08:00","placeCode":"HBC3","timeSlot":10,"bookingStatus":"A","lastModifiedDate":"2017-08-01T06:30:00+08:00"},{"_id":"5c359a68edcba302d0566114","bookingID":81081938,"bookingDate":"2018-08-28T00:00:00+08:00","placeCode":"HBC3","timeSlot":9,"bookingStatus":"A","lastModifiedDate":"2017-08-01T06:30:00+08:00"}]
, "_returned": 14
}