Method | URL | Description |
---|---|---|
POST |
/user/register |
Create a new user |
POST |
/user/login |
Return the token and ID neccesary to acces to the API routes |
GET |
/user/{user_id} |
Get user information |
Parameters expected:
Parameters | Type |
---|---|
name |
str |
username |
str |
email |
str |
password |
str |
Example:
{
"name": "User Test",
"username": "user1",
"email": "[email protected]",
"password": "password123"
}
Example response:
{
"id": 1,
"name": "User Test",
"username": "user1",
"email": "[email protected]"
}
Use Basic Authentication with the values email and password.
Example Response:
{
"token": user_secret_token,
"username": "user1",
"id": 1
}