Get roles related to a role
POST
http://localhost:3000/graphqlQuery
query FindAllPermissionForRoles($roleInput: RoleInput!) {
findAllPermissionForRoles(roleInput: $roleInput) {
appointment_permission
feedback_permission
roles_name
support_tickets_permissions
}
}
Variables
{
"roleInput": {
"role_name": "doctor"
}
}
Request
None
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
object {0}
Example
{
"data": {
"findAllPermissionForRoles": {
"appointment_permission": [
"update",
"delete",
"read"
],
"feedback_permission": [
"read",
"update"
],
"roles_name": "doctor",
"support_tickets_permissions": [
"read"
]
}
}
}
Last modified: 2 months ago