This project show cats and cats effect integration with tagless pattern in a playframework application.
sbt ~run
curl -XGET http://localhost:9000/users
curl -XPOST http://localhost:9000/users -H 'Content-Type: application/json' -d '
{
"email": "[email protected]",
"name": "Ragnar Lodbrock",
"birthDate": "1981-04-01"
}' | jq
curl -XPOST http://localhost:9000/users -H 'Content-Type: application/json' -d '
{
"email": "[email protected]",
"name": "Ragnar Lodbrock",
"birthDate": "1981-04-01",
"drivingLicenceDate": "1995-04-01"
}' | jq
curl -XPUT http://localhost:9000/users/[email protected] -H 'Content-Type: application/json' -d '
{
"email": "[email protected]",
"name": "Ragnar Lodbrock",
"birthDate": "1981-04-01"
}' | jq
curl -XDELETE http://localhost:9000/users/[email protected] --include
curl -XGET http://localhost:9000/users/[email protected]