Holidays

It is used to manage holidays by admin (for global usage) or secretary/headmaster (for their school).

Global holiday - available for all schools for a specific country (only the admin can manage it).

Local holiday - available just for a specific school.

Endpoints

TypeURIDescription
GET./holidays/globalThis endpoint retrieves the global holidays.
POST./holidays/globalThis endpoint creates a new global holiday.
PUT./holidays/global/{id}This endpoint updates the specified global holiday.
DELETE./holidays/global/{id}This endpoint deletes the global holiday and from all schools with the given ID.
GET./holidaysThis endpoint retrieves all holidays (global & local) on a selected date range.
POST./holidaysThis endpoint creates a new local holiday.
PUT./holidays/{id}This endpoint updates a holiday.
DELETE./holidays/{id}This endpoint deletes the holiday from the school OR we mark it as disabled if the holiday is globaly.