GET/user/login

Log in a user

Authenticates a user by checking the supplied login credentials. Provide username and password as query parameters to log in; both parameters are optional in the schema.

2 parameters
usernamestringoptional
The username to use for login.
passwordstringoptional
The user's password to use for login, sent as a query parameter.

3 status codes
200Returns a string containing the login result.
400Returned when the supplied username or password is invalid.
defaultReturned when an unexpected error occurs.

Error handling

A 400 is returned when username or password is invalid. Both query parameters are optional in the schema, but provide the credentials required to authenticate the user.