Example of CRUD in Django with REST FRAMEWORK
Go to file
2021-07-13 19:44:12 +02:00
app/libros Add reverse urls 2021-07-13 19:37:12 +02:00
proyecto format 2021-07-13 18:30:31 +02:00
tests Add reverse urls 2021-07-13 19:37:12 +02:00
.gitignore First commit 2021-07-05 15:56:53 +02:00
manage.py format 2021-07-13 18:30:31 +02:00
pytest.ini First commit 2021-07-05 15:56:53 +02:00
README.md Create README.md 2021-07-13 19:44:12 +02:00
requirements.txt Add list and detail 2021-07-12 23:47:31 +02:00

Example of CRUD in Django with REST FRAMEWORK

All endpoints contain your test.

Endpoints

  • /api/books GET _ /api/books POST
  • /api/books/:pk GET
  • /api/books/:pk DELETE
  • /api/books/:pk PUT

Install

python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
python3 manage.py migrate

Run

python3 manage.py runserver