Skip to content

Time Table

Badbird5907 edited this page Dec 7, 2022 · 6 revisions

Time Table

Path: /api/TimeTable/GetTimeTable/Student/<school id>/<date>/<date>

Method: GET

Notes ~~Not sure why you need to supply date twice~~

Edit: After further testing, not supplying two different dates returns a range for the timetable, and only one date will return that date's timetable.

Date is formatted like this: ddmmyyyy, example: 07122022

Description: Retuns the user's timetable, including:

  • class code
  • period (a space, not sure what that's about)
  • block (can be null)
  • school code
  • date
  • cycle day
  • Friendly cycle name
  • Teacher name
  • Teacher email

Note: Also returns some other planner things, looks like it's unused though.

GetDayNameDayCycle

Path: /api/TimeTable/GetDayNameDayCycle/<school>/20222023/Regular/05092022/09092022

Method: GET

Note: Not sure what this is, returns an empty array...

I Didn't replace dates here as they may become helpful.

Holidays

Path: /api/TimeTable/GetHolidays/<school>

Method: GET

Description: Returns a json array of holidays such as PA days, National holidays (Labour day, Thanksgiving etc...), all with IDs incrementing from 1

Clone this wiki locally