All of the endpoints in the ACL REST API are inherited from the PersistedModel REST API. The reference is provided here for convenience.
By default, the ACL REST API is not exposed. To expose it, add the following to models.json:
"acl": { "public": true, "options": { "base": "ACL" }, "dataSource": "db" },
Quick reference
URI Pattern | HTTP Verb | Default Permission | Description | Arguments |
---|---|---|---|---|
| POST | Allow | Add ACL instance and persist to data source. Inherited from generic model API. | JSON object (in request body) |
/acls | GET | Deny | Find all instances of ACLs that match specified filter. Inherited from generic model API . | One or more filters in query parameters:
|
/acls | PUT | Deny | Update / insert ACL instance and persist to data source. Inherited from generic model API . | JSON object (in request body) |
/acls/id | GET | Deny | Find ACLs by ID: Return data for the specified acls instance ID. Inherited from generic model API . | id, the ACL instance ID (in URI path) |
/acls/id | PUT | Deny | Update attributes for specified acls ID and persist. Inherited from generic model API . | Query parameters:
|
/acls/id | DELETE | Deny | Delete ACLs with specified instance ID. Inherited from generic model API . | id, acls ID (in URI path) |
/acls/id/exists | GET | Deny | Check instance existence: Return true if specified acls ID exists. Inherited from generic model API . | URI path:
|
/acls/count | GET | Deny | Return the number of ACL instances that matches specified where clause. Inherited from generic model API. | Where filter specified in query parameter |
/acls/findOne | GET | Deny | Find first ACL instance that matches specified filter. Inherited from generic model API . | Same as Find matching instances. |