- Akka Http server implemented as ZIO Layer
- HTTP endpoints implemented with Tapir
- Model implementation using Newtype from ZIO Prelude
Run Main
. Server will start at localhost:8080
.
// POST localhost:8080/user
{
"name": "Jon Doe",
"role": {
"type": "Administrator",
"securityCode": 256
}
}
Dummy endpoint will return passed object.
Go to localhost:8080/swagger
to take a look at the documentation generated with Tapir