From fd5f731ce20ca1c4146a72dcad9a71e53fd9ccb8 Mon Sep 17 00:00:00 2001 From: Lloyd Brookes Date: Wed, 28 Jun 2017 21:33:06 +0100 Subject: [PATCH] Update README.md --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index d6043e0..79ec157 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,15 @@ Serving at http://mbp.local:8000, http://127.0.0.1:8000, http://192.168.0.100:80 Test your mock responses: ```sh +$ curl http://127.0.0.1:8000/users -H 'Content-type: application/json' -d '{ "name": "Anthony" }' -i +HTTP/1.1 201 Created +Vary: Origin +Location: /users/4 +Content-Type: text/plain; charset=utf-8 +Content-Length: 7 +Date: Wed, 28 Jun 2017 20:31:19 GMT +Connection: keep-alive + $ curl http://127.0.0.1:8000/users [ { @@ -112,6 +121,10 @@ $ curl http://127.0.0.1:8000/users "name": "Francesco", "age": 24, "nationality": "Italian" + }, + { + "id": 4, + "name": "Anthony" } ```