dbp/relay-authorization-bundle
For details on parameters and schemas, see the operations under the Authorization tag of your OpenAPI documentation.
Represents a group of users. See Groups.
Represents a member of an AuthorizationGroup. A member is either
AuthorizationGroupSee Groups.
Represents an app resource uniquely identified by a resource class and a resource identifier. See Resource Action Grants.
Represents a grant that entitles a user, or an AuthorizationGroup, or a dynamic group of users
to perform an action on an AuthorizationResource. See Resource Action Grants.
Represents the set of available
for one resource class.
The 'manage' action is predefined and available for all resource items and collections. See Resource Action Grants.
POST /authorization/groupsCreates a new group.
| relay:errorId | Status code | Description | relay:errorDetails | Example |
|---|---|---|---|---|
authorization:adding-group-failed |
500 | The group could not be created. | message |
['message' => 'Error message'] |
authorization:group-invalid |
400 | The group is invalid. | <invalid attribute> |
['name'] |
GET /authorization/groupsGets one page of groups the logged-in user is authorized to read.
Filters:
search: return only those groups that contain the specified string (case-insensitive).| relay:errorId | Status code | Description | relay:errorDetails | Example |
|---|---|---|---|---|
authorization:getting-group-collection-failed |
500 | The groups could not be retrieved. | message |
['message' => 'Error message'] |
GET /authorization/groups/{identifier}Gets the group with the given identifier.
| relay:errorId | Status code | Description | relay:errorDetails | Example |
|---|---|---|---|---|
authorization:getting-group-item-failed |
500 | The group could not be retrieved. | message |
['message' => 'Error message'] |
DELETE /authorization/groups/{identifier}Deletes the group with the given identifier.
| relay:errorId | Status code | Description | relay:errorDetails | Example |
|---|---|---|---|---|
authorization:removing-group-failed |
500 | The group could not be removed. | message |
['message' => 'Error message'] |
POST /authorization/groups-membersAdds a new group member to a group.
| relay:errorId | Status code | Description | relay:errorDetails | Example |
|---|---|---|---|---|
authorization:adding-group-member-failed |
500 | The group member could not be added. | message |
['message' => 'Error message'] |
authorization:group-member-invalid |
400 | The group member is invalid. | <invalid attribute> |
['name'] |
GET /authorization/groups-membersGets one page of group members for a given group.
| relay:errorId | Status code | Description | relay:errorDetails | Example |
|---|---|---|---|---|
authorization:getting-group-member-item-failed |
500 | The group members could not be retrieved. | message |
['message' => 'Error message'] |
authorization:required-parameter-missing |
400 | A required parameter is missing. | groupIdentifier |
['groupIdentifier'] |
authorization:group-not-found |
404 | Group with given identifier was not found. | groupIdentifier |
['groupIdentifier'] |
GET /authorization/groups-members/{identifier}Gets the group member with the given identifier.
| relay:errorId | Status code | Description | relay:errorDetails | Example |
|---|---|---|---|---|
authorization:getting-group-member-collection-failed |
500 | The group member could not be retrieved. | message |
['message' => 'Error message'] |
DELETE /authorization/groups-members/{identifier}Deletes the group member with the given identifier.
| relay:errorId | Status code | Description | relay:errorDetails | Example |
|---|---|---|---|---|
authorization:removing-group-member-failed |
500 | The group member could not be removed. | message |
['message' => 'Error message'] |
GET /authorization/resourcesGets one page of the resources, the logged-in user is authorized to read.
| relay:errorId | Status code | Description | relay:errorDetails | Example |
|---|---|---|---|---|
authorization:getting-resource-collection-failed |
500 | The resources could not be retrieved. | message |
['message' => 'Error message'] |
GET /authorization/resources/{identifier}Gets the resource with the given identifier.
| relay:errorId | Status code | Description | relay:errorDetails | Example |
|---|---|---|---|---|
authorization:getting-resource-item-failed |
500 | The resource could not be retrieved. | message |
['message' => 'Error message'] |
POST /authorization/resource-action-grantsCreates a new grant to perform a given action on the given resource.
Parameters:
resourceClass: Only return grant for resources from the given resource class.| relay:errorId | Status code | Description | relay:errorDetails | Example |
|---|---|---|---|---|
authorization:adding-resource-action-grant-failed |
500 | The grant could not be added. | message |
['message' => 'Error message'] |
authorization:resource-action-grant-invalid-action-missing |
400 | The grant is invalid: action is missing. | ['action'] |
|
authorization:resource-action-grant-invalid-action-undefined |
400 | The grant is invalid: action is undefined for the given resource class. | ['action'] |
GET /authorization/resource-action-grantsGets one page of the grants, the logged-in user is authorized to read.
| relay:errorId | Status code | Description | relay:errorDetails | Example |
|---|---|---|---|---|
authorization:getting-resource-action-grant-collection-failed |
500 | The grants could not be retrieved. | message |
['message' => 'Error message'] |
GET /authorization/resource-action-grants/{identifier}Gets the grant with the given identifier.
| relay:errorId | Status code | Description | relay:errorDetails | Example |
|---|---|---|---|---|
authorization:getting-resource-action-grant-item-failed |
500 | The grant could not be retrieved. | message |
['message' => 'Error message'] |
DELETE /authorization/resource-action-grants/{identifier}Deletes the grant with the given identifier.
| relay:errorId | Status code | Description | relay:errorDetails | Example |
|---|---|---|---|---|
authorization:removing-resource-action-grant-failed |
500 | The grant could not be removed. | message |
['message' => 'Error message'] |
GET /authorization/available-resource-class-actions/{identifier}Get the list of item and collection actions that are available for the given resource class.
GET /authorization/available-resource-class-actionsGet the lists of item and collection actions that are available for all given resource classes the logged-in user is authorized to see.
How can I help you explore Laravel packages today?