All enpoints will respond with json that contains a message
. Use these messages to debug.
Creates a user.
-
body required in request
body.username
stringbody.password
string
-
response codes
200
on successful creation500
on error
Authenticates an exisiting user using their username and password.
-
body required in request:
- body.username string
- body.password string
-
response codes:
200
on successful authentication400
on failed authentication
-
A successful authentication will set a authentication cookie on the client named
token
.
Check if a user is successfully authenticated.
- no body
- response codes:
200
on successful verification of the client'stoken
cookie400
on failed verification of client'stoken
cookie