From 87942dd7697c4250da02be678c3c3efba6c0375c Mon Sep 17 00:00:00 2001 From: Michael Bull Date: Wed, 24 Jan 2018 13:23:47 +0000 Subject: [PATCH] Simplify example section in README --- README.md | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 3314ff3..419e0ec 100644 --- a/README.md +++ b/README.md @@ -149,16 +149,12 @@ user-facing errors. ### Payloads -#### `GET` - -##### Input +#### Fetch customer information ``` $ curl -i -X GET 'http://localhost:9000/customers/5' ``` -##### Output - ``` HTTP/1.1 200 OK Content-Type: application/json; charset=UTF-8 @@ -172,9 +168,7 @@ Content-Length: 93 } ``` -#### `POST` - -##### Input +#### Add new customer ``` $ curl -i -X POST \ @@ -188,8 +182,6 @@ $ curl -i -X POST \ 'http://localhost:9000/customers/200' ``` -##### Output - ``` HTTP/1.1 201 Created Content-Type: text/plain; charset=UTF-8