loganfreeman / spring-boot-crud-book

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BOOK API:

  1. create book

POST /books

curl -d '{"author":"Carpenter","title":"A day in the woods"}' -H 'Content-Type: application/json' http://localhost:8080/books
  1. list books

GET /books

curl http://localhost:8080/books
  1. update a book

PUT /books/:id

curl -X PUT -d '{"author":"Mrs. Carpenter","title":"A day in the woods"}' -H 'Content-Type: application/json' http://localhost:8080/books/2
  1. delete a book

DELETE /books/:id

curl -X DELETE http://localhost:8080/books/2

About


Languages

Language:Java 100.0%