Authentication

Authenticating against the API.

get
Login

http://localhost:8080/api/login
This endpoint will return a JWT token that is required for all other queries.
Request
Response
Request
Body Parameters
username
required
string
Username (1-255 characters).
password
required
string
Password (8-255 characters).
Response
200: OK
Successful login.
{
"token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJiYXNzZXR0QHN0cmVhbW52ci5jb20iLCJleHAiOjE1NTk3MTEwMzd9.0UrGZwAfYg6Q7qs3JnCAnopSCwFnWwasdfasdfasdf4N09XvR6YBV5KEfkW95iv3MC0I_tZRPAbGDy0j88_AluymQ"
}
401: Unauthorized
Returned when an invalid username or password is supplied.
{
"message": "Ain't no cake like that."
}

‚Äč