... | @@ -13,18 +13,17 @@ |
... | @@ -13,18 +13,17 @@ |
|
- Updating or creating an entity should return the entity if discreet (i.e. tagging an asset will not return the tag or the asset but creating a tag will return the tag).
|
|
- Updating or creating an entity should return the entity if discreet (i.e. tagging an asset will not return the tag or the asset but creating a tag will return the tag).
|
|
|
|
|
|
|
|
|
|
| HTTP | Route | Action |
|
|
| HTTP | Route | Action |
|
|
| -------- | ---------------------- | ------------------------- |
|
|
| -------- | ---------------------- | ------------------------- |
|
|
|`POST` | `/permissions` | create resource, optional permission id for parent in payload|
|
|
|`POST` | `/resources` | create resource, properties in json payload|
|
|
|`GET` | `/permissions` | get resource collection|
|
|
|`GET` | `/resources` | get resource collection|
|
|
|`GET` | `/permissions?role=:id` | get resource collection for role|
|
|
|`GET` | `/resources?filter=:filter_param` | get filtered resource collection|
|
|
|`GET` | `/permissions/:id` | get single resource|
|
|
|`GET` | `/resources/:id` | get single resource|
|
|
|`DELETE` | `/permissions/:id` | delete single resource|
|
|
|`DELETE` | `/resources/:id` | delete single resource|
|
|
|`DELETE` | `/permissions/:id?recursive=:boolean` | delete single resource|
|
|
|`DELETE` | `/resources/:id?recursive=:boolean` | delete single resource, additional parameters in get string|
|
|
|`PATCH` | `/permissions/:id` | update resource|
|
|
|`PATCH` | `/resources/:id` | update resource|
|
|
|`POST` | `/permissions/:id/link` | link permission to specified role(s), payload []|
|
|
|`POST` | `/resources/:id/link` | link permission to specified role(s), payload []|
|
|
|`POST` | `/permissions/:id/unlink` | unlink permission to specified role(s), payload []|
|
|
|`POST` | `/resources/:id/unlink` | unlink permission to specified role(s), payload []|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
... | | ... | |