Skip to content

API: GET List of All Users

Francesca Sadikin edited this page Apr 12, 2018 · 2 revisions
  • Method: GET
  • Endpoint: /api/users
{
    "users": [
        {
            "username": "lsnicket",
            "status": true,
            "profileImage": "",
            "_id": "5acecac2410b7aa0ed88bb23",
            "password": "$2a$10$Pwm8si.ny9zomh4oAGK0fu86qs6gnG1EZMrvelEHOnGa.Vuuj8HSa",
            "email": "lsnicket@gmail.com",
            "firstName": "lemony",
            "lastName": "snickett",
            "__v": 0
        },
{
            "username": "hpotter",
            "status": true,
            "profileImage": "",
            "_id": "5acecac2410b7aa0ed88bb23",
            "password": "$2a$10$Pwm8si.ny9zomh4oAGK0fu86qs6gnG1EZMrvelEHOnGa.Vuuj8HSa",
            "email": "hpotter@gmail.com",
            "firstName": "harry",
            "lastName": "potter",
            "__v": 0
        }
    ],
    "message": "Successfully retrieved all users"
}
Clone this wiki locally