loicdescotte / play-zio-1

Sample app to use ZIO and Zlayer with a playframework application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ZIO / ZLayer with playframework

Start the app

sbt '~run'

Use the app

curl -XPOST http://localhost:9000/users -H 'Content-Type:application/json' -d '{"name":"test"}'
curl http://localhost:9000/users
curl -XPUT http://localhost:9000/users/da8b2cd6-a88c-4a54-81b8-eeb7ce9075c5 -H 'Content-Type:application/json' -d '{"id":"da8b2cd6-a88c-4a54-81b8-eeb7ce9075c5","name":"test2"}'

About

Sample app to use ZIO and Zlayer with a playframework application


Languages

Language:Scala 97.3%Language:HTML 2.7%