This project was done as a test task for intern position in Vention.
Redoc documentation will be available after successful deployment by link :
2 models - Category and Task which are related by One to Many relationship. There are serializers for both models and for registration.
Available endpoints also include 'refresh-login/' for refreshing auth token, 'login/' for obtaining auth token by entering username and password, and 'register/' - for registration.
For endpoint 'category' and 'task' pagination is included.
Admin page is also configured to have the best view on the data.
Unit tests are included and will be run before the server is started automatically. For each endpoint there are tests for both valid and invalid scenarios. Pytest is used for testing.
To deploy this project you need to clone this repository and put .env file with DJANGO_SECRET_KEY in root directory of the project(same dir as manage.py).
docker-compose up -d
For comfortable access to the admin panel, you can use the following credentials:
username: vention
password: vention2024
Or instead of using this credentials you can create your own custom superuser by running the following command in terminal inside of container:
python manage.py createsuperuser