Auth
Request the login api to get access token. Access token should be attached for every request required auth.
Auth only takes access token from header Authorization. An example would be
Authorization: Basic accessToken
Access token will expire
- Created after 1 hour
- Used by another IP address
Login
/v0/auth/login
This takes POST only
Takes form-data, required fields: name, passwd
Returns json
{
"status": "[ok/bad]",
"token": "[token/null]"
}
Return code will always be 200