Creates a new user -> Expects an email, username and password in the body of the request + a "profile_pic" file {"email": $email, "username": $username, "password": $password, $profile_pic: File}
and returns a response with an auth token in the headers
Authenticates an existing user -> Expects a username and password in the body of the request {"username":$username, "password":$password}
and returns a response with an auth token in the headers
Returns all users in the database* (*Admin rights required) -> Expects an Admin token in the headers Authorization: Bearer $token
Delete all users from the database* (*Admin rights required) -> Expects an Admin token in the headers Authorization: Bearer $token
Returns information about the user making the request -> Expects an auth token in the headers Authorization: Bearer $token
Updates fields of user making the request -> Expects a body containing the fields the user wants to update and an auth token in the headers Authorization: Bearer $token
Deletes the user making the request -> Expects an auth token in the headers Authorization: Bearer $token