Open pniedzwiedzinski opened 4 years ago
/api/teacher/all
In {app}/views.py create a view for returning all Substitutions. Only GET method should be allowed.
{app}/views.py
GET
https://www.django-rest-framework.org/tutorial/quickstart/#views
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
/api/teacher/all
In
{app}/views.py
create a view for returning all Substitutions. OnlyGET
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