Versions Compared

Key

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

...

Code Block
GET https://repo-staging.sagebase.org/repo/v1/entity/{resourceentity_typeid}/{rid}/acl
Code Block
{"id":"1",
 "creationDate":1307141851484,
 "uri":null,
 "etag":"0",
 "createdBy":"admin",
 "resourceAccess":[
	{"id":"1",
	 "groupName":"PUBLIC",
	 "accessType":["READ","CHANGE_PERMISSIONS","DELETE","UPDATE","CREATE"]
	}
 ],
 "modifiedBy":"admin",
 "modifiedOn":1307141851483
}

...

Code Block
POST https://repo-staging.sagebase.org/repo/v1/entity/{resourceentity_typeid}/{rid}/acl
{"id":"{ridentity_id}",
 "resourceAccess":[
	{"groupName":"PUBLIC",
	 "accessType":["READ","CHANGE_PERMISSIONS","DELETE","UPDATE","CREATE"]
	}
 ]
}

...

Note: This is only used when a "resourceIdentity_id" already specifies its access control list (does not inherit from an ancestor).

Code Block
PUT https://repo-staging.sagebase.org/repo/v1/entity/{resourceentity_typeid}/{rid}/acl
{"id":"1",
 "etag":"0",
 "resourceAccess":[
	{"id":"1",
	 "groupName":"PUBLIC",
	 "accessType":["READ","CHANGE_PERMISSIONS","DELETE","UPDATE","CREATE"]
	}
 ],
}

...

Code Block
DELETE https://repo-staging.sagebase.org/repo/v1/entity/{resourceentity_typeid}/{rid}/acl

Ask whether there is access to a Resource

...

Code Block
GET https://repo-staging.sagebase.org/repo/v1/entity/{resource_type}/{ridentity_id}/access?accessType={accessType}

...