# Users

# Users

All the routes about the users

# Routes

# http://ip:port/login

All parameters need to be in a form-data.

# Parameters


# Body

Name Type Description Required
name string The account username true
password string The account password true

# Responses


Status Description
200: OK Logged in
401: Unauthorized Wrong username or password
# http://ip:port/logout

# Responses


Status Description
200: OK Logged out
400: Bad Request You are not logged in
# http://ip:port/createAccount

All parameters need to be in a form-data.

# Parameters


# Body

Name Type Description Required
name string The account username true
password string The account password true
type string The account type (Admin, Adult, Teen, Kid) true
profilePicture File The profile picture image false

# Responses


Status Description
200: OK Account created
400: Bad Request Username already exists
# http://ip:port/profil

All parameters need to be in a form-data.

# Parameters


# Body

Name Type Description Required
name string The account username false
password string The account password false
profilePicture File The profile picture image false

# Responses


Status Description
200: OK Account edited
400: Bad Request You are not logged in
# http://ip:port/whoami

You need to be logged in.

The route return in a JSON the account data, the name, the sha256 password, the profile picture, and the account type

# Responses


Status Description
200: OK Account data
400: Bad Request You are not logged in