All the entities and relationships defined in the previously developed UML diagram are now implemented as Django models. Also added 2 new endpoints:
POST /user: allows to register a new admin in the system, by specifying their email and password. Returns a token that is connected to that admin, and that needs to be used in endpoints that require admin authentication.
GET /user/test: this endpoint requires admin authentication through their token. Allows to test if the token was correctly generated.
A new admin can also be created in the terminal, using the following command:
docker exec -it feupexchange_django python manage.py createsuperuser
All the entities and relationships defined in the previously developed UML diagram are now implemented as Django models. Also added 2 new endpoints:
POST /user
: allows to register a new admin in the system, by specifying their email and password. Returns a token that is connected to that admin, and that needs to be used in endpoints that require admin authentication.GET /user/test
: this endpoint requires admin authentication through their token. Allows to test if the token was correctly generated.A new admin can also be created in the terminal, using the following command:
docker exec -it feupexchange_django python manage.py createsuperuser
Closes issue #3.