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 format | JSON |
Requires authorization? | Yes |
Rate limited? | Yes |
Parameters
Parameter | Related Field | Required | Description | Type | Filter Type | Example |
---|---|---|---|---|---|---|
place_code | placeCode | optional | Identity code for sport complex facilities | query | simple | HSPL0 |
description | description | optional | Description in English | query | simple | Swimming Pool Lane 0 |
description_chin | descriptionChin | optional | Description in Chinese | query | simple | 游泳館第零泳道 |
booking_status | bookingStatus | optional | Booking status | query | simple | Y |
place_category | placeCategory | optional | INDOOR/OUTDOOR | query | simple | INDOOR |
open_time_from | openTimeFrom | optional | From 1 to 24, represents the 24 hours in a day | query | range | 7 |
open_time_to | openTimeTo | optional | From 1 to 24, represents the 24 hours in a day | query | range | 22 |
web_booking_enabled | webBookingEnabled | optional | “Y” = web booking enabled “N” = web booking disabled | query | simple | N |
admin_booking_enabled | adminBookingEnabled | optional | “Y” = counter booking enabled “N” = counter booking disabled | query | simple | Y |
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 }