From 54d9e3147096015f42e7f5e38c6f96a0d3b65041 Mon Sep 17 00:00:00 2001 From: Unbewohnte Date: Thu, 23 Sep 2021 09:54:35 +0300 Subject: [PATCH] Examples are in rows now --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7ea5922..cc6d30f 100644 --- a/README.md +++ b/README.md @@ -14,11 +14,11 @@ Implemented: - **DELETE** ## 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/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 +- `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/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 ---