...
Methods: GET, POST, DELETE
Warning |
---|
Arbitrary access roles may be set through this API. However, they are only enforced when paired with a Policy Enforcement Point that is aware of access roles. |
...
Get a list of all the roles assigned to principals on this resource Status title GET
...
Set the roles assigned on this resource Status colour Blue title POST
Example:
Code Block |
---|
curl -X POST -H "Content-Type: application/json" -d "@post.txt" "http://localhost:8080/rest/49/3d/24/41/493d2441-0541-41c7-a23b-09d1f17d4a0f/fcr:accessroles"
Body:
{
"principal name 1" : [ "reader" ],
"principal name 2" : [ "writer" ],
"principal name 3" : [ "admin" ]
} |
Response:
Code Block |
---|
Status: 201 Created
Headers:
Location: http://localhost:8080/rest/test/fcr:accessroles
Content-Length: 0
Server: Jetty(8.1.11.v20130520)
|
Status:
Status | ||||||||
---|---|---|---|---|---|---|---|---|
|
Status | ||||||
---|---|---|---|---|---|---|
|
Clear all roles assignments from this resource Status colour Red title DELETE