/play-zio

Sample app to use ZIO and Zlayer with a playframework application

Primary LanguageScala

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