From da8ea52e08b7542d87ef18057a7e9652e71d8db4 Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Wed, 7 Sep 2022 10:06:01 +0200 Subject: [PATCH] Update README.md --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f46c870..dfc7198 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ ### Get list ``` shell -curl https://example-of-crud-in-django-jrf.herokuapp.com/api/book/ +curl localhost:8000/api/book/ ``` Output @@ -44,7 +44,7 @@ Output ### Get Detail ``` shell -curl https://example-of-crud-in-django-jrf.herokuapp.com/api/book/1/ +curl localhost:8000/api/book/1/ ``` Output @@ -64,7 +64,7 @@ Output ### Create ``` 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 @@ -84,7 +84,7 @@ Output ### Update ``` 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 @@ -104,7 +104,7 @@ Output ### Delete ``` shell -curl -XDELETE https://example-of-crud-in-django-jrf.herokuapp.com/api/book/1/ +curl -XDELETE localhost:8000/api/book/1/ ``` Output @@ -124,7 +124,7 @@ Output ### Ping ``` shell -curl https://example-of-crud-in-django-jrf.herokuapp.com/ping/ +curl localhost:8000/ping/ ``` Output @@ -158,4 +158,4 @@ python3 manage.py runscript create_books ``` bash pytest -``` \ No newline at end of file +```