django-scheduler icon indicating copy to clipboard operation
django-scheduler copied to clipboard

REST Api

Open superandrew opened this issue 2 years ago • 2 comments

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

superandrew avatar Jun 30 '22 06:06 superandrew

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.

superandrew avatar Jul 04 '22 20:07 superandrew

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

xjlin0 avatar Oct 01 '22 19:10 xjlin0