Basic Users API including Authentication using Http4s v0.18 and Cats Effect v0.5
{
"username": "gvolpe",
"email": "[email protected]",
"password": "123456" // optional
}
{
"email": "[email protected]"
}
{
"password: "[email protected]"
}
{
"username": "gvolpe",
"password": "123456"
}
Requires Authentication (/v1/signin)
For the sake of simplicity in this example the user with username = "gvolpe" and password = "" will be the only one authenticated as an administrator. Any other user will not be authorized to perform requests that require authentication.
Start the server by executing sbt run
. The server will be listening at http://localhost:8080.