1> curl -v -X PATCH localhost:8080/books/4 -H "Content-type:application/json" -d "{\"author\":\"oracle\"}"
2* Trying ::1...
3* TCP_NODELAY set
4* Connected to localhost (::1) port 8080 (#0)
5> PATCH /books/4 HTTP/1.1
6> Host: localhost:8080
7> User-Agent: curl/7.55.1
8> Accept: <strong>/</strong>
9> Content-type:application/json
10> Content-Length: 19
11>
12* upload completely sent off: 19 out of 19 bytes
13< HTTP/1.1 200
14< Content-Type: application/json;charset=UTF-8
15< Transfer-Encoding: chunked
16< Date: Tue, 19 Feb 2019 07:39:53 GMT
17
18{
19 "id":4,
20 "name":"Spring Forever",
21 "author":"oracle",
22 "price":9.99
23}
1> curl -v localhost:8080/books
2
3* Trying ::1...
4* TCP_NODELAY set
5* Connected to localhost (::1) port 8080 (#0)
6> GET /books HTTP/1.1
7> Host: localhost:8080
8> User-Agent: curl/7.55.1
9> Accept: <strong>/</strong>
10>
11< HTTP/1.1 200
12< Content-Type: application/json;charset=UTF-8
13< Transfer-Encoding: chunked
14< Date: Tue, 19 Feb 2019 06:33:57 GMT
15<
16
17[
18 {"id":1,"name":"A Guide to the Bodhisattva Way of Life","author":"Santideva","price":15.41},
19 {"id":2,"name":"The Life-Changing Magic of Tidying Up","author":"Marie Kondo","price":9.69},
20 {"id":3,"name":"Refactoring: Improving the Design of Existing Code","author":"Martin Fowler","price":47.99}
21]