I have made the REST API Using the Django framework without using Django REST Framework. I have met all the specification mentioned in the PDF provided. All the functions have the documentation on what they are used for. I have created automated tests for all the functionalities. The database used in this is the SQL.
The database is enumerated with the JSON file provided in the PDF. There is a db_base.sqlite3
which is only enumerated with the users in the JSON file.
The tests are extensive and are believed to cover all the scenarios.
The API is divided into 2 functions, which is divided on the basis of the URL. Inside each function, different if-else blocks perform different functions based on the method type from the request.
- Windows
- Linux
apt install python3 python3-pip python-is-python3
pip install django
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
python manage.py test