Auth Provider | Clouded 1.0.0 Help

Roles

Get all entities

GET method/v1/roles

Request parameters

Responses

{ "errors": [ { "i18N": "example", "error": "example", "type": "example" } ] }
{ "data": [ {}, {} ] }

Create entity

POST method/v1/roles

Request parameters

{}

Responses

{ "errors": [ { "i18N": "example", "error": "example", "type": "example" } ] }
{ "data": {} }

Get all entities paginated

GET method/v1/roles/paginated

Request parameters

Responses

{ "errors": [ { "i18N": "example", "error": "example", "type": "example" } ] }
{ "data": { "items": [ {}, {} ], "pageInfo": { "pageIndex": 83, "pageSize": 56, "totalElements": 71, "totalPages": 48 } } }

Get entity by identity

GET method/v1/roles/by_identity/{identity}

Request parameters

Responses

{ "errors": [ { "i18N": "example", "error": "example", "type": "example" } ] }
{ "data": {} }

Get entity by id

GET method/v1/roles/{id}

Request parameters

Responses

{ "errors": [ { "i18N": "example", "error": "example", "type": "example" } ] }
{ "data": {} }

Delete entity

DELETE method/v1/roles/{id}

Request parameters

Responses

{ "errors": [ { "i18N": "example", "error": "example", "type": "example" } ] }

Update entity

PATCH method/v1/roles/{id}

Request parameters

{}

Responses

{ "errors": [ { "i18N": "example", "error": "example", "type": "example" } ] }
{ "data": {} }

/v1/roles/{id}/permissions/add PUT

PUT method/v1/roles/{id}/permissions/add

Request parameters

{ "permissionIds": [ {}, {} ] }

Responses

{ "errors": [ { "i18N": "example", "error": "example", "type": "example" } ] }

/v1/roles/{id}/permissions/remove PUT

PUT method/v1/roles/{id}/permissions/remove

Request parameters

{ "permissionIds": [ {}, {} ] }

Responses

{ "errors": [ { "i18N": "example", "error": "example", "type": "example" } ] }
Last modified: 17 August 2024