A REST api built with Django using their broilerplate that has Create, Read, and Delete functionality.
Docs: https://www.django-rest-framework.org/
Django==4.2.7
djangorestframework==3.14.0
pip install django
pip install djangorestframework
Most of this code was built starting from the Django broiler plate.
To install the broilerplate, type in the terminal:
django-admin startproject myproject
cd myproject
python manage.py runserver
https://127.0.0.1:8000/add
Go to the add page to add an entry to the database:
Example of JSON format for entry:
Syntax:
{
"name":"Joe"
}
Click "post"
https://127.0.0.1:8000
Click the delete button:
This button will delete all of the entries from the database: