Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Status
subtletrue
titleeffective
  When supplied, gets the list of effective roles for this resource, including those inherited from the parent

Example:

Code Block
curl "http://localhost:8080/rest/49/3d/24/41/493d2441-0541-41c7-a23b-09d1f17d4a0f/fcr:accessroles"

Response:

Code Block
Status: 200 OK

Headers:
Content-Type: application/json
Transfer-Encoding: chunked
Server: Jetty(8.1.11.v20130520)

Body:

{"principal name 3":["admin"],"principal name 1":["reader"],"principal name 2":["writer"]}

Status:

Status
subtletrue
colourGreen
title200
 OK

Status
subtletrue
colourGreen
title204
No Content

...

 Output formats: application/json

Status
colourBlue
titlePOST
Set the roles assigned on this resource

...

Status
subtletrue
colourGreen
title201
 OK Created

Status
subtletrue
colourRed
title400
Bad Request

...

Status
colourRed
titleDELETE
Clear all roles assignments from this resource

Example:

Code Block
curl -X DELETE "http://localhost:8080/rest/49/3d/24/41/493d2441-0541-41c7-a23b-09d1f17d4a0f/fcr:accessroles"

Response:

Code Block
Status: 204 No Content

Headers: 
Server: Jetty(8.1.11.v20130520)

Status:

Status
subtletrue
colourGreen
title204
No Content