get-sport-complex-facilities-all 2018-10-08T09:23:56+08:00

GET /service/facilities/sport_complex_facilities/all

Return all sport complex facilities information in University of Macau campus.

Resource URL

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

Resource Information

Response formatJSON
Requires authorization?Yes
Rate limited?Yes

Parameters

ParameterRelated FieldRequiredDescriptionTypeFilter TypeExample
place_codeplaceCodeoptionalIdentity code for sport complex facilitiesquerysimpleHSPL0
descriptiondescriptionoptionalDescription in EnglishquerysimpleSwimming Pool Lane 0
description_chindescriptionChinoptionalDescription in Chinesequerysimple游泳館第零泳道
booking_statusbookingStatusoptionalBooking statusquerysimpleY
place_categoryplaceCategoryoptionalINDOOR/OUTDOORquerysimpleINDOOR
open_time_fromopenTimeFromoptionalFrom 1 to 24, represents the 24 hours in a dayqueryrange7
open_time_toopenTimeTooptionalFrom 1 to 24, represents the 24 hours in a dayqueryrange22
web_booking_enabledwebBookingEnabledoptional“Y” = web booking enabled
“N” = web booking disabled
querysimpleN
admin_booking_enabledadminBookingEnabledoptional“Y” = counter booking enabled
“N” = counter booking disabled
querysimpleY

Example Request

https://api.data.um.edu.mo/service/facilities/sport_complex_facilities/v1.0.0/all?place_category=INDOOR&web_booking_enabled=Y&open_time_from=15&open_time_to=16&description=dance

(Example to retrieve all indoor sport complex facilities which contains ‘dance’ in English description and open time between 15:00 to 16:00 and is available to be booked on web)

Example Response

Top 100 records will be returned.

{ "_embedded": [
{
 "_id": "5b9ade09daa27871fc000dfd",
 "placeCode": "HDR",
 "description": "Dance Room",
 "descriptionChin": "舞蹈室",
 "bookingStatus": "Y",
 "placeCategory": "INDOOR",
 "openTimeFrom": 7,
 "openTimeTo": 23,
 "webBookingEnabled": "Y",
 "adminBookingEnabled": "Y"
}]
, "_returned": 1
}