Created
June 20, 2014 15:23
-
-
Save emodric/79fb2a3cc8dc35be5b12 to your computer and use it in GitHub Desktop.
Loading eZ Publish 5 role with Tag policy limitation
This file contains hidden or 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
| eddie@abyss: ~/repos/emodric/rest_scripts [master] $ ./json/roles/08-loadRolePolicies.sh | |
| GET /api/ezp/v2/user/roles/5/policies HTTP/1.1 | |
| Accept: application/vnd.ez.api.PolicyList+json | |
| Accept-Encoding: gzip, deflate, compress | |
| Host: ezpublish5.local | |
| User-Agent: HTTPie/0.7.2 | |
| HTTP/1.1 200 OK | |
| Cache-Control: no-cache | |
| Content-Type: application/vnd.ez.api.PolicyList+json | |
| Date: Fri, 20 Jun 2014 15:21:11 GMT | |
| Server: Apache/2.4.9 (Ubuntu) | |
| Set-Cookie: eZSESSID=na9n5qk03o8oialq1n3p8kb644; path=/ | |
| Transfer-Encoding: chunked | |
| X-Debug-Token: 9b3157 | |
| X-Powered-By: PHP/5.5.13-2+deb.sury.org~trusty+1 | |
| { | |
| "PolicyList": { | |
| "Policy": [ | |
| { | |
| "_href": "/api/ezp/v2/user/roles/5/policies/410", | |
| "_media-type": "application/vnd.ez.api.Policy+json", | |
| "function": "create", | |
| "id": "410", | |
| "limitations": { | |
| "limitation": [ | |
| { | |
| "_identifier": "Class", | |
| "values": { | |
| "ref": [ | |
| { | |
| "_href": "31", | |
| "_media-type": "application/vnd.ez.api.ref+json" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "_identifier": "Section", | |
| "values": { | |
| "ref": [ | |
| { | |
| "_href": "1", | |
| "_media-type": "application/vnd.ez.api.ref+json" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "_identifier": "ParentClass", | |
| "values": { | |
| "ref": [ | |
| { | |
| "_href": "30", | |
| "_media-type": "application/vnd.ez.api.ref+json" | |
| } | |
| ] | |
| } | |
| } | |
| ] | |
| }, | |
| "module": "content" | |
| }, | |
| { | |
| "_href": "/api/ezp/v2/user/roles/5/policies/411", | |
| "_media-type": "application/vnd.ez.api.Policy+json", | |
| "function": "create", | |
| "id": "411", | |
| "limitations": { | |
| "limitation": [ | |
| { | |
| "_identifier": "Class", | |
| "values": { | |
| "ref": [ | |
| { | |
| "_href": "32", | |
| "_media-type": "application/vnd.ez.api.ref+json" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "_identifier": "Section", | |
| "values": { | |
| "ref": [ | |
| { | |
| "_href": "1", | |
| "_media-type": "application/vnd.ez.api.ref+json" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "_identifier": "ParentClass", | |
| "values": { | |
| "ref": [ | |
| { | |
| "_href": "31", | |
| "_media-type": "application/vnd.ez.api.ref+json" | |
| } | |
| ] | |
| } | |
| } | |
| ] | |
| }, | |
| "module": "content" | |
| }, | |
| { | |
| "_href": "/api/ezp/v2/user/roles/5/policies/412", | |
| "_media-type": "application/vnd.ez.api.Policy+json", | |
| "function": "create", | |
| "id": "412", | |
| "limitations": { | |
| "limitation": [ | |
| { | |
| "_identifier": "Class", | |
| "values": { | |
| "ref": [ | |
| { | |
| "_href": "13", | |
| "_media-type": "application/vnd.ez.api.ref+json" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "_identifier": "Section", | |
| "values": { | |
| "ref": [ | |
| { | |
| "_href": "1", | |
| "_media-type": "application/vnd.ez.api.ref+json" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "_identifier": "ParentClass", | |
| "values": { | |
| "ref": [ | |
| { | |
| "_href": "16", | |
| "_media-type": "application/vnd.ez.api.ref+json" | |
| }, | |
| { | |
| "_href": "18", | |
| "_media-type": "application/vnd.ez.api.ref+json" | |
| } | |
| ] | |
| } | |
| } | |
| ] | |
| }, | |
| "module": "content" | |
| }, | |
| { | |
| "_href": "/api/ezp/v2/user/roles/5/policies/413", | |
| "_media-type": "application/vnd.ez.api.Policy+json", | |
| "function": "edit", | |
| "id": "413", | |
| "limitations": { | |
| "limitation": [ | |
| { | |
| "_identifier": "Class", | |
| "values": { | |
| "ref": [ | |
| { | |
| "_href": "13", | |
| "_media-type": "application/vnd.ez.api.ref+json" | |
| }, | |
| { | |
| "_href": "31", | |
| "_media-type": "application/vnd.ez.api.ref+json" | |
| }, | |
| { | |
| "_href": "32", | |
| "_media-type": "application/vnd.ez.api.ref+json" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "_identifier": "Section", | |
| "values": { | |
| "ref": [ | |
| { | |
| "_href": "1", | |
| "_media-type": "application/vnd.ez.api.ref+json" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "_identifier": "Owner", | |
| "values": { | |
| "ref": [ | |
| { | |
| "_href": "1", | |
| "_media-type": "application/vnd.ez.api.ref+json" | |
| } | |
| ] | |
| } | |
| } | |
| ] | |
| }, | |
| "module": "content" | |
| }, | |
| { | |
| "_href": "/api/ezp/v2/user/roles/5/policies/414", | |
| "_media-type": "application/vnd.ez.api.Policy+json", | |
| "function": "call", | |
| "id": "414", | |
| "module": "ezjscore" | |
| }, | |
| { | |
| "_href": "/api/ezp/v2/user/roles/5/policies/415", | |
| "_media-type": "application/vnd.ez.api.Policy+json", | |
| "function": "use", | |
| "id": "415", | |
| "module": "notification" | |
| }, | |
| { | |
| "_href": "/api/ezp/v2/user/roles/5/policies/416", | |
| "_media-type": "application/vnd.ez.api.Policy+json", | |
| "function": "password", | |
| "id": "416", | |
| "module": "user" | |
| }, | |
| { | |
| "_href": "/api/ezp/v2/user/roles/5/policies/417", | |
| "_media-type": "application/vnd.ez.api.Policy+json", | |
| "function": "selfedit", | |
| "id": "417", | |
| "module": "user" | |
| }, | |
| { | |
| "_href": "/api/ezp/v2/user/roles/5/policies/418", | |
| "_media-type": "application/vnd.ez.api.Policy+json", | |
| "function": "add", | |
| "id": "418", | |
| "limitations": { | |
| "limitation": [ | |
| { | |
| "_identifier": "Tag", | |
| "values": { | |
| "ref": [ | |
| { | |
| "_href": "1", | |
| "_media-type": "application/vnd.ez.api.ref+json" | |
| }, | |
| { | |
| "_href": "2", | |
| "_media-type": "application/vnd.ez.api.ref+json" | |
| } | |
| ] | |
| } | |
| } | |
| ] | |
| }, | |
| "module": "tags" | |
| } | |
| ], | |
| "_href": "/api/ezp/v2/user/roles/5/policies", | |
| "_media-type": "application/vnd.ez.api.PolicyList+json" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment