Opencast

Acl service REST Documentation

/admin-ng/acl
Provides operations for acl

General Notes

Table of Contents

Read methods

Method / Path: GET /acls.json
Description: Returns a list of acls
Path params: NONE
Optional (query) params: filter: The filter used for the query. They should be formated like that: 'filter1:value1,filter2:value2'
sort: The sort order. May include any of the following: NAME. Add '_DESC' to reverse the sort order (e.g. NAME_DESC).
limit(Default value=100): The maximum number of items to return per page.
offset(Default value=0): The page number.
Response formats: application/json
Status codes: 200: OK, The list of ACL's has successfully been returned
Notes:
  • Return value description: Returns a JSON representation of the list of acls available the current user's organization
Testing:
Sample: /acls.json?filter={filter}&sort={sort}&limit=100&offset=0
Testing form (click to reveal)
Method / Path: GET /{id}
Description: Return the ACL by the given id
Path params: id(Default value=0): The ACL identifier
Optional (query) params: NONE
Response formats: application/json
Status codes: 200: OK, The ACL has successfully been returned
404: Not Found, The ACL has not been found
Notes:
  • Return value description: Return the ACL by the given id
Testing:
Sample: /{id}
Testing form (click to reveal)
Method / Path: GET /roles.json
Description: Returns a list of roles
Path params: NONE
Optional (query) params: query: The query.
target: The target of the roles.
limit(Default value=100): The maximum number of items to return per page.
offset(Default value=0): The page number.
Response formats: application/json
Status codes: 200: OK, The list of roles.
Notes:
  • Return value description: Returns a JSON representation of the roles with the given parameters under the current user's organization.
Testing:
Sample: /roles.json?query={query}&target={target}&limit=100&offset=0
Testing form (click to reveal)

Write methods

Method / Path: POST /
Description: Create an ACL
Path params: NONE
Required (form) params: name: The ACL name
acl: The access control list
Optional (form) params: NONE
Response formats: application/json
Status codes: 200: OK, The ACL has successfully been added
409: Conflict, An ACL with the same name already exists
400: Bad Request, Unable to parse the ACL
Notes:
  • Return value description: Create an ACL
Testing:
Sample: /
Testing form (click to reveal)
Method / Path: DELETE /{id}
Description: Delete an ACL
Path params: id(Default value=0): The ACL identifier
Optional (query) params: NONE
Status codes: 200: OK, The ACL has successfully been deleted
404: Not Found, The ACL has not been found
409: Conflict, The ACL could not be deleted, there are still references on it
Notes:
  • Return value description: Delete an ACL
Testing:
Sample: /{id}
Testing form (click to reveal)
Method / Path: PUT /{id}
Description: Update an ACL
Path params: id(Default value=0): The ACL identifier
Required (form) params: name: The ACL name
acl: The access control list
Optional (form) params: NONE
Response formats: application/json
Status codes: 200: OK, The ACL has successfully been updated
404: Not Found, The ACL has not been found
400: Bad Request, Unable to parse the ACL
Notes:
  • Return value description: Update an ACL
Testing:
Sample: /{id}
Testing form (click to reveal)