Update README.md

This commit is contained in:
Andros Fenollosa 2022-09-07 10:06:01 +02:00 committed by GitHub
parent 73732cc7a1
commit da8ea52e08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@
### Get list ### Get list
``` shell ``` shell
curl https://example-of-crud-in-django-jrf.herokuapp.com/api/book/ curl localhost:8000/api/book/
``` ```
Output Output
@ -44,7 +44,7 @@ Output
### Get Detail ### Get Detail
``` shell ``` shell
curl https://example-of-crud-in-django-jrf.herokuapp.com/api/book/1/ curl localhost:8000/api/book/1/
``` ```
Output Output
@ -64,7 +64,7 @@ Output
### Create ### Create
``` shell ``` shell
curl -XPOST -H "Content-type: application/json" -d '{"title": "The foundation", "country": "eeuu", "author": "Isaac Asimov", "year": "1951"}' https://example-of-crud-in-django-jrf.herokuapp.com/api/book/ curl -XPOST -H "Content-type: application/json" -d '{"title": "The foundation", "country": "eeuu", "author": "Isaac Asimov", "year": "1951"}' localhost:8000/api/book/
``` ```
Output Output
@ -84,7 +84,7 @@ Output
### Update ### Update
``` shell ``` shell
curl -XPUT -H "Content-type: application/json" -d '{"title": "The End of Eternity", "country": "eeuu", "author": "Isaac Asimov", "year": "1955"}' https://example-of-crud-in-django-jrf.herokuapp.com/api/book/1/ curl -XPUT -H "Content-type: application/json" -d '{"title": "The End of Eternity", "country": "eeuu", "author": "Isaac Asimov", "year": "1955"}' localhost:8000/api/book/1/
``` ```
Output Output
@ -104,7 +104,7 @@ Output
### Delete ### Delete
``` shell ``` shell
curl -XDELETE https://example-of-crud-in-django-jrf.herokuapp.com/api/book/1/ curl -XDELETE localhost:8000/api/book/1/
``` ```
Output Output
@ -124,7 +124,7 @@ Output
### Ping ### Ping
``` shell ``` shell
curl https://example-of-crud-in-django-jrf.herokuapp.com/ping/ curl localhost:8000/ping/
``` ```
Output Output
@ -158,4 +158,4 @@ python3 manage.py runscript create_books
``` bash ``` bash
pytest pytest
``` ```