This is ZIO with PlayFramework Sample code.
sbt 'run'
Register a book
curl -XPOST http://localhost:9000/mybooks -H 'Content-Type:application/json' -d '{"name":"mybook"}'
Search books by ID
curl -XGET http://localhost:9000/mybooks/fc788402-299f-4e4b-87f4-b5b6d1e7d6e6 -H 'Content-Type:application/json'
List the books
curl http://localhost:9000/mybooks
Update the book
curl -XPUT http://localhost:9000/mybooks/fc788402-299f-4e4b-87f4-b5b6d1e7d6e6 -H 'Content-Type:application/json' -d '{"id":"fc788402-299f-4e4b-87f4-b5b6d1e7d6e6","name":"my zio book"}'