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
Type | URI | Description |
---|---|---|
GET | ./holidays/global | This endpoint retrieves the global holidays. |
POST | ./holidays/global | This 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 | ./holidays | This endpoint retrieves all holidays (global & local) on a selected date range. |
POST | ./holidays | This 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. |