asaf-kali / coursist

Open Source Workshop (67118) course team project
MIT License
6 stars 12 forks source link

backend: add API call to export calendar in ICS format #113

Closed nvgoldin closed 4 years ago

nvgoldin commented 4 years ago

The new route is at: /schedule, with query parameter download:

  1. /schedule/?download=ical Will download the existing user scheduled courses in ICS format (iCalendar)

  2. /schedule/?download=json Will download the existing user scheduled courses in JSON format but not as repeating events (just the canonical dates)

The ICS format can be easily exported to google calendar, outlook, etc.

No FE here (yet) - would be helpful if you could help testing it out, I tested the basic functionally manually (one course, 2 courses, etc) - and imported it to google calendar. I didn't test all the edge cases: end/begin of semester course, etc.

How to run

When logged in just add in your browser /schedule/?download=ical Go to google calendar -> press add new calendar -> press import

Closes https://github.com/asaf-kali/coursist/issues/94