Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 927 Bytes

README.md

File metadata and controls

36 lines (27 loc) · 927 Bytes

library-app-zio

This is ZIO with PlayFramework Sample code.

References

Start the app

sbt 'run'

Use the app

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"}'