python3 manage.py migrate
python3 manage.py testserver
Using Docker file
docker build -t django-to_do_app .
docker run --name=Django -td django-to_do_app
- A task will have a
title
anddue-date
.
-
There are only 2 state applicable for task. Pending or Completed Restricting the user from the UI
-
Search (on
title
) should be availablehttp://localhost:8000/api/v1/task/?title__contains=past
-
Filtering on
due-date
should be possible using the following — Today, This week, Next week, Overdue
_ Following are the Search criteria : _
- dateRange=today
http://localhost:8000/api/v1/task/?dateRange=today
- dateRange=overdue
http://localhost:8000/api/v1/task/?dateRange=overdue
- dateRange=last_week
http://localhost:8000/api/v1/task/?dateRange=last_week
- dateRange=next_week
http://localhost:8000/api/v1/task/?dateRange=next_week
Added custom build_filters for filtering the result