Operations
/ping
Simple boolean, always returns true in non-error states. Indicates the minimal functioning of the system as a whole. Use /health for a deeper diagnostic.
curl https://test-m1.minusonedb.com/pingm1 test-m1 ping- rights: none
- verbs: GET
- parameters: none
/init
A POST will initialize a new environment; this operation can only be performed once. GET calls to /init will return a boolean indicating whether the system has been initialized.
curl https://test-m1.minusonedb.com/init
curl https://test-m1.minusonedb.com/init \
-d "username=admin&password=passphrase&bucket=m1-24e27632d234452ba37e60936c0e88eb"m1 test-m1 init
m1 test-m1 init -username admin -password passphrase -bucket m1-24e27632d234452ba37e60936c0e88eb- rights: none
- verbs: GET or POST
| Parameter | Type | Required |
|---|---|---|
| username | String | Yes |
| password | String | Yes |
| bucket | String | Yes |
/health
Returns the status of all environment components.
curl https://test-m1.minusonedb.com/health \
-H "m1-auth-token: $myToken"m1 test-m1 health- rights: admin
- verbs: GET
- parameters: none
Rights
An example response when a user does not have sufficient rights:
{
"message": "User test does not have requested right in set admin",
"status": 403
}Users must have one of the rights listed in the service description in order to use the service. Rights are case-sensitive strings. The list below details all MinusOneDB managed environment rights.
admin: user can manage users, assign rights, and perform typical operational tasks (backup, restore, health checks, etc).
schema: user can edit and view the environment schema.
get: user can query data the data lake or data stores.
publish: user can publish data to the data lake.
sessionQuery: user can query all session stores.
sessionUpdate: user can add, update, or delete data from all session stores.
You can use /user/update to update the rights of a user. The collection of rights is extensible for application-specific uses.
