πŸ”Authentification

/login

Login the user

POST /login

Return a JWT if the user has already an account and the password and the mail correspond.

Request Body

Name
Type
Description

mail*

string

The user email adress

password*

string

The user password

{
    "name"="Wilson",
    "owner": {
        "id": "sha7891bikojbkreuy",
        "name": "Samuel Passet",
    "species": "Dog",}
    "breed": "Golden Retriever",
}

/createNewUser

Creates a new user in the database

POST /createNewUser

Creates a new user if the mail adress doesn't have already an account. By default it create a Watcher user. That means the user is only able to see data and cannot modify or create anything.

Request Body

Name
Type
Description

name*

String

mail*

String

password*

String

Last updated