GET /service/facilities/access_control_records/all
Return online door access control records of the recent two years.
Resource URL
https://api.data.um.edu.mo/service/facilities/access_control_records/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 |
---|---|---|---|---|---|---|
door_id | doorID | optional | Door identity | query | regular expression | W12 |
access_date_from | accessDate | optional | Datetime, in UTC+08:00 (inclusive) | query | range | 2018-08-25T08:00:00 |
access_date_to | accessDate | optional | Datetime, in UTC+08:00 (inclusive) | query | range | 2018-08-25T08:30:00 |
Example Request
https://api.data.um.edu.mo/service/facilities/access_control_records/v1.0.0/all?access_date_from=2018-08-25T08:00:00&access_date_to=2018-08-25T08:30:00&door_id=w12
(Example to retrieve access control records of doorID contains string pattern “W12” from 2018/08/25 08:00:00 to 2018/08/25 08:30:00)
Example Response
{ "_embedded": [ { "_id": "5b80d4806f517c0f57acb06c", "hashID": "87b82bfabe9a9a689646886acf9f29f4", "doorID": "W12 New Turnstile L In ", "accessDate": "2018-08-25T08:28:29+08:00", "grantResult": "G" },{ "_id": "5b80d4806f517c0f57acb06b", "hashID": "87b82bfabe9a9a689646886acf9f29f4", "doorID": "W12-0G-C04", "accessDate": "2018-08-25T08:26:55+08:00", "grantResult": "G" },{ "_id": "5b80d4806f517c0f57acb06a", "hashID": "880a5f1bda01b27f2d4b68501ce6b52d", "doorID": "W12 New Turnstile L Out", "accessDate": "2018-08-25T08:26:21+08:00", "grantResult": "G" },{ "_id": "5b80d4806f517c0f57acb069", "hashID": "f403b4d72bcb594149db5d9e4ce4006e", "doorID": "W12 New Turnstile L Out", "accessDate": "2018-08-25T08:26:07+08:00", "grantResult": "G" },{ "_id": "5b80d4806f517c0f57acb068", "hashID": "feef5bdf6f3668a75e530472789e1b29", "doorID": "W12 New Turnstile L Out", "accessDate": "2018-08-25T08:25:26+08:00", "grantResult": "G" },{ "_id": "5b80d4806f517c0f57acb067", "hashID": "6926e64a42faf1a2cba83c8ef7288145", "doorID": "W12 New Turnstile L Out", "accessDate": "2018-08-25T08:20:26+08:00", "grantResult": "G" },{ "_id": "5b80d4806f517c0f57acb066", "hashID": "87b82bfabe9a9a689646886acf9f29f4", "doorID": "W12-0G-C04", "accessDate": "2018-08-25T08:20:12+08:00", "grantResult": "G" },{ "_id": "5b80d4806f517c0f57acb065", "hashID": "057fd80a971f396629720b518d1fcbae", "doorID": "W12 New Turnstile L Out", "accessDate": "2018-08-25T08:16:01+08:00", "grantResult": "G" },{ "_id": "5b80d4806f517c0f57acb064", "hashID": "87b82bfabe9a9a689646886acf9f29f4", "doorID": "W12-0G-C04", "accessDate": "2018-08-25T08:13:36+08:00", "grantResult": "G" },{ "_id": "5b80d4806f517c0f57acb063", "hashID": "9480783166dfb8b47d44ecf13bd8a876", "doorID": "W12 New Turnstile L Out", "accessDate": "2018-08-25T08:10:56+08:00", "grantResult": "G" },{ "_id": "5b80d4806f517c0f57acb062", "hashID": "c1fa2cc5d26ada60e76815eac4203cc7", "doorID": "W12 New Turnstile L Out", "accessDate": "2018-08-25T08:09:36+08:00", "grantResult": "G" }] , "_returned": 11 }