Index

Authentication

Routes

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

Register

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]"
}

Log In

Use Basic Authentication with the values email and password.

Example Response:

{
  "token": user_secret_token,
  "username": "user1",
  "id": 1
}