From 66fdf421ea82246e32453f353ff6af3b0a6fc00f Mon Sep 17 00:00:00 2001 From: Unbewohnte Date: Thu, 23 Sep 2021 09:57:10 +0300 Subject: [PATCH] Removed examples file --- README.md | 2 +- curl_examples | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 curl_examples diff --git a/README.md b/README.md index cc6d30f..ff451c3 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Implemented: ## Examples - `curl localhost:8000/randomdata` - to get EVERYTHING (obviously a bad idea if you have lots of data) -- `curl localhost:8000/randomdata -H "content-type:application/json" -d '{"title":"This is a title","text":"This is a text"} ' -X POST` - to create a new RandomData (IDs are created automatically from 1-∞) +- `curl localhost:8000/randomdata -H "content-type:application/json" -d '{"title":"This is a title","text":"This is a text"}' -X POST` - to create a new RandomData (IDs are created automatically from 1-∞) - `curl localhost:8000/randomdata/1` - to get the first RandomData you`ve created - `curl localhost:8000/randomdata/1 -H "content-type:application/json" -d '{"title":"This is an updated title","text":"This is an updated text"}' -X PATCH` - to update the first RandomData - `curl localhost:8000/randomdata/1 -X DELETE` - to delete the first RandomData diff --git a/curl_examples b/curl_examples deleted file mode 100644 index 00e8c24..0000000 --- a/curl_examples +++ /dev/null @@ -1,6 +0,0 @@ -curl localhost:8000/randomdata -curl localhost:8000/randomdata -H "content-type:application/json" -d '{"title":"This is a title","text":"This is a text"}' -X POST -curl localhost:8000/randomdata/1 -H "content-type:application/json" -d {"title":"This is an updated title","text":"This is an updated text"}' -X PUT -curl localhost:8000/randomdata/1 -curl localhost:8000/randomdata/1 -X DELETE -