... | @@ -15,16 +15,16 @@ |
... | @@ -15,16 +15,16 @@ |
|
|
|
|
|
| HTTP | Route | Action |
|
|
| HTTP | Route | Action |
|
|
| -------- | ---------------------- | ------------------------- |
|
|
| -------- | ---------------------- | ------------------------- |
|
|
|`POST` | '/permissions` | create resource, optional permission id for parent in payload|
|
|
|`POST` | `/permissions` | create resource, optional permission id for parent in payload|
|
|
|`GET` | '/permissions` | get resource collection|
|
|
|`GET` | `/permissions` | get resource collection|
|
|
|`GET` | '/permissions?role=:id` | get resource collection for role|
|
|
|`GET` | `/permissions?role=:id` | get resource collection for role|
|
|
|`GET` | '/permissions/:id` | get single resource|
|
|
|`GET` | `/permissions/:id` | get single resource|
|
|
|`DELETE`| '/permissions/:id` | delete single resource|
|
|
|`DELETE` | `/permissions/:id` | delete single resource|
|
|
|`DELETE`| '/permissions/:id?recursive=:boolean` | delete single resource|
|
|
|`DELETE` | `/permissions/:id?recursive=:boolean` | delete single resource|
|
|
|`PATCH` | '/permissions/:id` | update resource|
|
|
|`PATCH` | `/permissions/:id` | update resource|
|
|
|`POST` | '/permissions/:id/link` | link permission to specified role(s), payload []|
|
|
|`POST` | `/permissions/:id/link` | link permission to specified role(s), payload []|
|
|
|`POST` | '/permissions/:id/unlink` | unlink permission to specified role(s), payload []|
|
|
|`POST` | `/permissions/:id/unlink` | unlink permission to specified role(s), payload []|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
... | | ... | |