Skip to content

taketora26/library-app-zio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published