forked from 2600hz/kazoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crossbar storage api and several fixes (2600hz#2532)
* add schemas for storage * schema formatting * handle connections settings * honour schema_loader_fun * build attachment handler * export fetch_dataplan * if no error codes to cache was suplied, use 'not_found' * add is_account_admin to cb_context * couchbeam dep update * handle other errors in kapps_config * swagger update * api docs * change spec and removed dead code * update schema ids * add option to ensure valid schema * metaflows schema update * remove fload * update metaflows schemas * KAZOO-5062 call correct json fun for server_id and queue_id * KAZOO-4432 add more data by default for legacy users * KAZOO-5060 schema validation fixes finished * KAZOO-4432 whitespaces * add a system_error facility to cb_context * add summary to storage * remove dev time code
- Loading branch information
1 parent
d9d7720
commit bc7c451
Showing
29 changed files
with
1,481 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
### Storage | ||
|
||
#### About Storage | ||
|
||
#### Schema | ||
|
||
Key | Description | Type | Default | Required | ||
--- | ----------- | ---- | ------- | -------- | ||
`attachments` | | `#/definitions/storage.attachments` | | `false` | ||
`connections` | | `#/definitions/storage.connections` | | `false` | ||
`plan` | | `#/definitions/storage.plan` | | `false` | ||
|
||
|
||
#### Remove | ||
|
||
> DELETE /v2/accounts/{ACCOUNT_ID}/storage | ||
```shell | ||
curl -v -X DELETE \ | ||
-H "X-Auth-Token: {AUTH_TOKEN}" \ | ||
http://{SERVER}:8000/v2/accounts/{ACCOUNT_ID}/storage | ||
``` | ||
|
||
#### Fetch | ||
|
||
> GET /v2/accounts/{ACCOUNT_ID}/storage | ||
```shell | ||
curl -v -X GET \ | ||
-H "X-Auth-Token: {AUTH_TOKEN}" \ | ||
http://{SERVER}:8000/v2/accounts/{ACCOUNT_ID}/storage | ||
``` | ||
|
||
#### Change | ||
|
||
> POST /v2/accounts/{ACCOUNT_ID}/storage | ||
```shell | ||
curl -v -X POST \ | ||
-H "X-Auth-Token: {AUTH_TOKEN}" \ | ||
http://{SERVER}:8000/v2/accounts/{ACCOUNT_ID}/storage | ||
``` | ||
|
||
#### Create | ||
|
||
> PUT /v2/accounts/{ACCOUNT_ID}/storage | ||
```shell | ||
curl -v -X PUT \ | ||
-H "X-Auth-Token: {AUTH_TOKEN}" \ | ||
http://{SERVER}:8000/v2/accounts/{ACCOUNT_ID}/storage | ||
``` | ||
|
||
#### Fetch | ||
|
||
> GET /v2/accounts/{ACCOUNT_ID}/storage/plans | ||
```shell | ||
curl -v -X GET \ | ||
-H "X-Auth-Token: {AUTH_TOKEN}" \ | ||
http://{SERVER}:8000/v2/accounts/{ACCOUNT_ID}/storage/plans | ||
``` | ||
|
||
#### Create | ||
|
||
> PUT /v2/accounts/{ACCOUNT_ID}/storage/plans | ||
```shell | ||
curl -v -X PUT \ | ||
-H "X-Auth-Token: {AUTH_TOKEN}" \ | ||
http://{SERVER}:8000/v2/accounts/{ACCOUNT_ID}/storage/plans | ||
``` | ||
|
||
#### Remove | ||
|
||
> DELETE /v2/accounts/{ACCOUNT_ID}/storage/plans/{STORAGE_PLAN_ID} | ||
```shell | ||
curl -v -X DELETE \ | ||
-H "X-Auth-Token: {AUTH_TOKEN}" \ | ||
http://{SERVER}:8000/v2/accounts/{ACCOUNT_ID}/storage/plans/{STORAGE_PLAN_ID} | ||
``` | ||
|
||
#### Fetch | ||
|
||
> GET /v2/accounts/{ACCOUNT_ID}/storage/plans/{STORAGE_PLAN_ID} | ||
```shell | ||
curl -v -X GET \ | ||
-H "X-Auth-Token: {AUTH_TOKEN}" \ | ||
http://{SERVER}:8000/v2/accounts/{ACCOUNT_ID}/storage/plans/{STORAGE_PLAN_ID} | ||
``` | ||
|
||
#### Change | ||
|
||
> POST /v2/accounts/{ACCOUNT_ID}/storage/plans/{STORAGE_PLAN_ID} | ||
```shell | ||
curl -v -X POST \ | ||
-H "X-Auth-Token: {AUTH_TOKEN}" \ | ||
http://{SERVER}:8000/v2/accounts/{ACCOUNT_ID}/storage/plans/{STORAGE_PLAN_ID} | ||
``` | ||
|
Oops, something went wrong.