GET /service/student/student_meal_consumption/all
Return all records of student meal consumption in residential college.
Resource URL
https://api.data.um.edu.mo/student/student_meal_consumption/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 |
---|---|---|---|---|---|---|
rc_member | rcMember | optional | Residential college which the student is belonged to | query | simple | LCWC |
consumption_location | consumptionLocation | optional | Residential college which the meal is consumed | query | simple | LCWC |
consume_date_from | consumeTime | optional | Datetime, in UTC+08:00 (inclusive) | query | range | 2014-08-23T12:42:11 |
consume_date_to | consumeTime | optional | Datetime, in UTC+08:00 (inclusive) | query | range | 2014-08-23T12:42:11 |
Example Request
https://api.data.um.edu.mo/service/student/student_meal_consumption/v1.0.0/all?consume_date_from=2018-08-27T09:29:00&consume_date_to=2018-08-27T09:31:59&consumption_location=CYTC
(Example to retrieve all reading records of student meal consumption in residential college ‘CYTC’ from 2018-08-27 09:29:00 to 2018-08-27 09:32:00)
Example Response
Top 100 records will be returned.
{ { "_embedded": [ { "_id": "5b8357d3c95d94eef59a21fe", "hashID": "550bfbd32c9c71bbeca5ace480af7b25", "rcMember": "CYTC", "consumeTime": "2018-08-27T09:31:45+08:00", "consumptionLocation": "CYTC", "mealType": "BREAKFAST", "lastModifiedDate": "2018-08-27T09:31:45+08:00" },{ "_id": "5b8357d2c95d94eef59a1f18", "hashID": "a617352b440540accf86bfa10a61facc", "rcMember": "CYTC", "consumeTime": "2018-08-27T09:31:41+08:00", "consumptionLocation": "CYTC", "mealType": "BREAKFAST", "lastModifiedDate": "2018-08-27T09:31:41+08:00" },{ "_id": "5b8357d2c95d94eef59a1e71", "hashID": "302e721d933849a0c9653228d95906b4", "rcMember": "CYTC", "consumeTime": "2018-08-27T09:31:33+08:00", "consumptionLocation": "CYTC", "mealType": "BREAKFAST", "lastModifiedDate": "2018-08-27T09:31:33+08:00" },{ "_id": "5b835450c95d94eef59a010d", "hashID": "4d7b927f9e07f4810e05d62914694aa2", "rcMember": "CYTC", "consumeTime": "2018-08-27T09:29:11+08:00", "consumptionLocation": "CYTC", "mealType": "BREAKFAST", "lastModifiedDate": "2018-08-27T09:29:11+08:00" },{ "_id": "5b835450c95d94eef59a007e", "hashID": "4368e2bab34a70ed954e0c6b9a53821a", "rcMember": "CYTC", "consumeTime": "2018-08-27T09:29:16+08:00", "consumptionLocation": "CYTC", "mealType": "BREAKFAST", "lastModifiedDate": "2018-08-27T09:29:16+08:00" }] , "_returned": 5 }