Open wintermeyer opened 4 years ago
I don't know how good this is but I just found it: https://github.com/lpil/icalendar
Mostly finished in #532
Remaining tasks:
- decide what filenames we want to use and if we want different filenames for the different types of icalendars
I think taking the name of the location and the year is a good first choice.
Updated in #533
The wording and formatting of the icalendar links still need to be updated.
Users want to download iCal https://en.wikipedia.org/wiki/ICalendar exports of our calendars. For federal states and schools. We need to provide the following versions:
is_school_vacation == true
).Both will be linked on https://www.mehr-schulferien.de/ferien/d/bundesland/:slug and on https://www.mehr-schulferien.de/ferien/d/schule/:slug
I don't know under which path they should be routed (I guess /api/2.0/...).
Misc
I am not familiar with the iCal format but I guess it contains some sort of fingerprint to make sure if data has changed. We have to honor that system by querying the
updated_at
fields of the usedperiods
and use that as that fingerprint.