Home

Awesome

users-api

Base User Actions

Sign Up:
{
  "username": "gvolpe",
  "email": "gvolpe@github.com",
  "password": "123456" // optional
}
Retrieve all users:
Retrieve user by id:
Update user's email
{
  "email": "gvolpe@gmail.com"
}
Update user's password
{
  "password: "gvolpe@gmail.com"
}
Forgot Password
Signin:
{
  "username": "gvolpe",
  "password": "123456"
}

Admin User Actions

Requires Authentication (/v1/signin)

Retrieve all users (including Password and Metadata)
Delete user by id:
Block user by id:
Unblock user by id:

Notes

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.