GET /service/student/rc_hostel_bed_spaces/all
Return all information of bed spaces for student in residential college.
Resource URL
https://api.data.um.edu.mo/service/student/rc_hostel_bed_spaces/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 |
---|---|---|---|---|---|---|
building_code | buildingCode | optional | Building code | query | simple | S9 |
floor | floor | optional | Floor | query | simple | 04 |
room | room | optional | Room | query | simple | 009 |
rc_code | rcCode | optional | Residential code | query | simple | SPC |
Example Request
https://api.data.um.edu.mo/service/student/rc_hostel_bed_spaces/v1.0.0/all?rc_code=SPC&building_code=S9&floor=01&room=044
(Example to retrieve all bed spaces information in ‘S9’ building which belongs to ‘SPC’ residential college in floor ‘1’ and room number ‘044’)
Example Response
Top 100 records will be returned.
{ "_embedded": [ { "_id": "5b9ade086f517c5d6150a3e3", "buildingCode": "S9", "floor": "01", "room": "044", "bedName": "R", "bedNumber": 1, "rcCode": "SPC", "forGender": "M" },{ "_id": "5b9ade086f517c5d6150a3e2", "buildingCode": "S9", "floor": "01", "room": "044", "bedName": "L", "bedNumber": 2, "rcCode": "SPC", "forGender": "M" }] , "_returned": 2 }