Open AnilXnmDrz opened 5 months ago
/access-roles
ListRolesWithAccess
AccessRole
RoleBasedAccess
List
API: GET {{url}}/access-roles
GET {{url}}/access-roles
Response:
"status_code": "REBEL-200", "status_message": "OK", "data": { "status_code": "REBEL-200", "status_message": "OK", "data": [ { "id": 2, "role_id": 2, "role_name": "Customer Services", "access": [ { "access_id": 6, "access_name": "users" }, { "access_id": 12, "access_name": "roles" }, { "access_id": 30, "access_name": "products" } ] }, { "id": 1, "role_id": 1, "role_name": "superadmin", "access": [ { "access_id": 1, "access_name": "root" } ] } ] } }
/access-roles
in the routing configuration.ListRolesWithAccess
method inAccessRole
model to fetch roles and their associated accesses.RoleBasedAccess
withList
method to handle the/access-roles
endpoint.API:
GET {{url}}/access-roles
Response: