Simplify example section in README
This commit is contained in:
parent
abf3716a71
commit
87942dd769
12
README.md
12
README.md
@ -149,16 +149,12 @@ user-facing errors.
|
|||||||
|
|
||||||
### Payloads
|
### Payloads
|
||||||
|
|
||||||
#### `GET`
|
#### Fetch customer information
|
||||||
|
|
||||||
##### Input
|
|
||||||
|
|
||||||
```
|
```
|
||||||
$ curl -i -X GET 'http://localhost:9000/customers/5'
|
$ curl -i -X GET 'http://localhost:9000/customers/5'
|
||||||
```
|
```
|
||||||
|
|
||||||
##### Output
|
|
||||||
|
|
||||||
```
|
```
|
||||||
HTTP/1.1 200 OK
|
HTTP/1.1 200 OK
|
||||||
Content-Type: application/json; charset=UTF-8
|
Content-Type: application/json; charset=UTF-8
|
||||||
@ -172,9 +168,7 @@ Content-Length: 93
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
#### `POST`
|
#### Add new customer
|
||||||
|
|
||||||
##### Input
|
|
||||||
|
|
||||||
```
|
```
|
||||||
$ curl -i -X POST \
|
$ curl -i -X POST \
|
||||||
@ -188,8 +182,6 @@ $ curl -i -X POST \
|
|||||||
'http://localhost:9000/customers/200'
|
'http://localhost:9000/customers/200'
|
||||||
```
|
```
|
||||||
|
|
||||||
##### Output
|
|
||||||
|
|
||||||
```
|
```
|
||||||
HTTP/1.1 201 Created
|
HTTP/1.1 201 Created
|
||||||
Content-Type: text/plain; charset=UTF-8
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Loading…
Reference in New Issue
Block a user