GET/user/login

Log in a user

Authenticates a user by checking the supplied username and password. Pass username and password as query parameters; neither is marked as required in the schema. A 200 response returns a string.

2 parameters
usernamestringoptional
The username to use for login.
passwordstringoptional
The password to use for login, sent as clear text.

3 status codes
200Returns a string confirming the login operation.
400Returned when the supplied username or password is invalid.
defaultUnexpected error

Error handling

A 400 is returned when the supplied username or password is invalid. The username and password query parameters are optional in the schema, but provide valid credentials to log in.