v1

latestOpenAPI 3.0.12026-07-1761025.1 KB
Venues

Get detailed information on all venues

Get detailed venue information including classes and occupancy for every venue. This is useful for displaying a timetable of the given venue as well as for checking if a venue is occupied at any given time.

get/{acadYear}/semesters/{semester}/venueInformation.json

Path parameters

acadYearstring required
Example:2018-2019

academic year, with the slash (/) replaced by a dash

semester1 | 2 | 3 | 4 required

semester, with 1 and 2 representing semester 1 and 2, and 3, 4 representing special term 1 and 2

Response

Success

object required

Example response

{
  "LT19": [
    {
      "day": "Monday",
      "classes": [
        {
          "classNo": "1",
          "startTime": "1830",
          "endTime": "2030",
          "weeks": [
            1,
            2,
            3,
            4,
            5,
            6,
            7,
            8,
            9,
            10,
            11,
            12,
            13
          ],
          "day": "Wednesday",
          "lessonType": "Lecture",
          "moduleCode": "CS5322",
          "size": 40
        }
      ],
      "availability": {
        "900": "occupied",
        "930": "occupied",
        "1000": "occupied"
      }
    }
  ]
}