zsk-poznan / zastepstwa

Web app for displaying substitute teachers
GNU General Public License v3.0
8 stars 3 forks source link

Add view for Substitutions #70

Open pniedzwiedzinski opened 4 years ago

pniedzwiedzinski commented 4 years ago

/api/teacher/all

In {app}/views.py create a view for returning all Substitutions. Only GET method should be allowed.

https://www.django-rest-framework.org/tutorial/quickstart/#views

Update

This view should return only substitutions for the current day. https://stackoverflow.com/questions/4668619/how-do-i-filter-query-objects-by-date-range-in-django