Retrieve an user
Retrieve an user by ID. The user ID must be given as route parameter. If not an admin, this route is accessible only for the given and authenticated user.
Path Parameters
- user_id integer required
ID of the user
Responses
- 200
- 401
- 403
- 404
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
- first_name string
User's first name
- last_name string
User's last name
- email email
User's email. Should be unique
- password password
Possible values:
>= 8 characters
User's password
{
"first_name": "John",
"last_name": "Doe",
"email": "john.doe@example.com",
"password": "badpassword"
}
User is not authenticated. This means token is either not present or invalid
User is not authorized to retrieve this user ID
User was not found
Something is wrong with the API.
Loading...