-
Mountpoint:
/user/*
,/login
-
Accepts:
application/json
-
Returns:
application/json
Log in. Note: that this is not in the /user/ mountpoint.
{
"username": "joe",
"password": "123456"
}
username
: (String) Username.password
: (String) Password.
HTTP Status 200:
User successfully logged in.
HTTP Status 401:
Failed to authenticate.
{
"username": "joe",
"password": "131131"
}
username
: (String) Username. Does not allow whitespace.password
: (String) Password. Does not currently enforce any policies; recommended at least 10 characters in length.
Note: Users are given perm of user
always on registration.
HTTP Status 302:
User registered. Redirects to /login.
HTTP Status 500:
Unable to register; user exists.
Get list of users
Local. admin
perm only.
{
"users": [ ... ]
}
users
: (Array) List of (modified) User objects.
HTTP Status 200:
Success.
HTTP Status 500:
Unable to retrieve user list.
HTTP Status 403
User requesting does not have admin
perm.
Local. admin
perm; user
perm requires that the user itself is making the request.
HTTP Status 200:
User deleted.
HTTP Status 403:
User is not owner of account or does not have admin
perm.