Users

Fetch all users


Return all the users
GET /users
page Page number of users to return. Returns empty array if the page has no users. If page parameter isn't present, returns the first page Optional
size Number of users to return in a page. If size parameter isn't present, returns the page with 25 users Optional
Response Body
[
    {
        "_id": "521f26ebcce8b4310e000064",
        "name": "Claire Parson",
        "email": "[email protected]ns.com",
        "role": {
            "name": "Admin"
        }
    },
    {
        "_id": "5221931acce8b45ab700003d",
        "name": "Roger Parson",
        "email": "[email protected]",
        "role": {
            "name": "User"
        }
    }
]

Show a user


Show details of an individual user
GET /users/:user_id
user_id Unique identifier of the user Required
Response Body
{
    "_id": "521f26ebcce8b4310e000064",
    "name": "Claire Parson",
    "email": "[email protected]",
    "role": {
        "name": "Admin"
    }
}