Example of CRUD in Django with REST FRAMEWORK
app/library | ||
project | ||
scripts | ||
tests | ||
.gitignore | ||
manage.py | ||
Procfile | ||
pytest.ini | ||
README.md | ||
requirements.txt |
Example of CRUD in Django with REST FRAMEWORK
All endpoints contain your test.
Live Demo
Get list
Get Detail
Create
Update
Delete
Install
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
python3 manage.py migrate
Run
python3 manage.py runserver
Fake data
python3 manage.py runscript create_books
Test
pytest