get-rc-hostel-bed-spaces-all 2018-10-08T09:19:40+08:00

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 formatJSON
Requires authorization?Yes
Rate limited?Yes

Parameters

ParameterRelated FieldRequiredDescriptionTypeFilter TypeExample
building_codebuildingCodeoptionalBuilding codequerysimpleS9
floorflooroptionalFloorquerysimple04
roomroomoptionalRoomquerysimple009
rc_codercCodeoptionalResidential codequerysimpleSPC

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
}