llazzaro / django-scheduler

A calendaring app for Django.
BSD 3-Clause "New" or "Revised" License
1.27k stars 391 forks source link

REST Api #526

Open superandrew opened 2 years ago

superandrew commented 2 years ago

Hi, is this package compatible with DRF? Is it supported to run calendar with no frontend UI (e.g. for a mobile client)?

superandrew commented 2 years ago

I noticed that there are API, however in the documentation (and the locally run demo) I wasn't able to find references to new event creation via API (I found the url, but I am unable to call it in POST with correct parameters). I'll try to reverse engineer the code, I was just guessing if I was missing a obvious thing in the documentation.

xjlin0 commented 1 year ago

Yes I am using this package with DRF with home written endpoints by calling period.get_occurrences(), since I need more than built-in API on /schedule/api/occurrences?calendar_slug=testcal&start=2019-01-01&end=2020-01-26. Also you can check how other people use it https://github.com/llazzaro/django-scheduler/issues/304#issuecomment-341237923