argo49 / soen-scheduler

1 stars 3 forks source link

Schedule data format #25

Open niofire opened 10 years ago

niofire commented 10 years ago

Hello! I would like to know what is the format for the schedule data from back-end to front-end?

c-robi commented 10 years ago

Here is the answer from the Google Drive, a century later:

Schedule: { “courses” : [ { “course” : ”SOEN341”, “title” : “Software Process”, “type” : “lecture”, “section” : “S”, “days”:“W,F”, “start” : 8.75, “end”: 10.00, “prof”: “Sutharsan Sivagnanam”, “room”: “H-820” }, ... ] }

It's just an array of courses. Schedule.courses.[0] would therefore give you access to the SOEN341 data in that schedule.

Hope this helps whoever works with the schedules!