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": "ragnar.lodbrock@gmail.com",
"name": "Ragnar Lodbrock",
"birthDate": "1981-04-01"
}' | jq
curl -XPOST http://localhost:9000/users -H 'Content-Type: application/json' -d '
{
"email": "ragnar.lodbrock@gmail.com",
"name": "Ragnar Lodbrock",
"birthDate": "1981-04-01",
"drivingLicenceDate": "1995-04-01"
}' | jq
curl -XPUT http://localhost:9000/users/ragnar.lodbrock@gmail.com -H 'Content-Type: application/json' -d '
{
"email": "ragnar.lodbrock@gmail.com",
"name": "Ragnar Lodbrock",
"birthDate": "1981-04-01"
}' | jq
curl -XDELETE http://localhost:9000/users/ragnar.lodbrock@gmail.com --include
curl -XGET http://localhost:9000/users/ragnar.lodbrock@gmail.com