get-computer-room-reservations-v2-all 2019-07-29T12:31:45+08:00

GET /service/facilities/computer_room_reservations_v2/all

Return computer room reservations information.

Resource URL

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

Resource Information

Response formatsJSON
Requires authorization?Yes
Rate limited?Yes

Parameters

ParameterRelated FieldRequiredDescriptionTypeFilter TypeExample
building_codebuildingCodeoptionalBuilding code of the building where the computer room locatesquerysimpleE6
room_noroomNooptionalRoom Number of the computer roomquerysimple2092
statusstatusoptionalStatus of reservationquerysimple1
date_fromdateFromoptionalReservation start date, in UTC+08:00 (inclusive)queryrange2018-07-04T06:00:00
date_todateTooptionalReservation end date, in UTC+08:00 (inclusive)queryrange2018-07-04T10:00:00

Example Request

Example to retrieve all computer room reservations of room 2095 in E6 builiding between 01 August 2018 to 31 August 2018:

https://api.data.um.edu.mo/service/facilities/computer_room_reservations_v2/v1.0.0/all?format&building_code=E6&room_no=2095&status=1&date_from=2018-08-01T00:00:00&date_to=2018-08-31T23:59:59

Example Response

{ "_embedded": [
{
 "_id": "5b83b444c95d94eef59d8ecb",
 "referenceNo": "5b839ea3e73de152442444",
 "buildingCode": "E6",
 "roomNo": "2095",
 "status": 1,
 "dateFrom": "2018-08-30T02:00:00+08:00",
 "dateTo": "2018-08-30T05:00:00+08:00",
 "lastModified": "2018-08-27T07:10:39+08:00"
},{
 "_id": "5b7fb098c95d94eef5514c0d",
 "referenceNo": "5b7e2cd785ae0276890689",
 "buildingCode": "E6",
 "roomNo": "2095",
 "status": 1,
 "dateFrom": "2018-08-29T02:00:00+08:00",
 "dateTo": "2018-08-29T05:00:00+08:00",
 "lastModified": "2018-08-23T03:41:52+08:00"
},{
 "_id": "5b74ff0dc95d94eef5a1ca8c",
 "referenceNo": "5b725df3f2eac942833500",
 "buildingCode": "E6",
 "roomNo": "2095",
 "status": 1,
 "dateFrom": "2018-08-20T01:30:00+08:00",
 "dateTo": "2018-08-20T10:00:00+08:00",
 "lastModified": "2018-08-14T06:37:17+08:00"
},{
 "_id": "5b712efac95d94eef55f9e22",
 "referenceNo": "5b59830347578668777718",
 "buildingCode": "E6",
 "roomNo": "2095",
 "status": 1,
 "dateFrom": "2018-08-27T02:00:00+08:00",
 "dateTo": "2018-08-27T05:00:00+08:00",
 "lastModified": "2018-08-06T07:56:55+08:00"
},{
 "_id": "5b712efac95d94eef55f9e1b",
 "referenceNo": "5b3b57e1a4049408625026",
 "buildingCode": "E6",
 "roomNo": "2095",
 "status": 1,
 "dateFrom": "2018-08-15T01:00:00+08:00",
 "dateTo": "2018-08-15T10:00:00+08:00",
 "lastModified": "2018-08-06T07:24:33+08:00"
},{
 "_id": "5b712eddc95d94eef55f8b66",
 "referenceNo": "5b67a7c021df9832618207",
 "buildingCode": "E6",
 "roomNo": "2095",
 "status": 1,
 "dateFrom": "2018-08-27T08:00:00+08:00",
 "dateTo": "2018-08-27T09:15:00+08:00",
 "lastModified": "2018-08-06T01:43:28+08:00"
},{
 "_id": "5b712edcc95d94eef55f8ae8",
 "referenceNo": "5b67a7bf49353804056723",
 "buildingCode": "E6",
 "roomNo": "2095",
 "status": 1,
 "dateFrom": "2018-08-30T08:00:00+08:00",
 "dateTo": "2018-08-30T09:15:00+08:00",
 "lastModified": "2018-08-06T01:43:27+08:00"
},{
 "_id": "5b712edcc95d94eef55f8ade",
 "referenceNo": "5b67a7bf48ef7460474018",
 "buildingCode": "E6",
 "roomNo": "2095",
 "status": 1,
 "dateFrom": "2018-08-23T08:00:00+08:00",
 "dateTo": "2018-08-23T09:15:00+08:00",
 "lastModified": "2018-08-06T01:43:27+08:00"
}]
, "_returned": 8
}