Autional Autional
API Reference GitHub autional.com →

POST /admin/relationships/check

Check if a relationship exists between a specified subject and target object based on the ReBAC model

Role Permissions `bearerAuth` application/json

Request Body

Schema: handler.rebacCheckRequest

FieldTypeRequiredExampleConstraintsDescription
object_id string Yes
object_type string Yes
relation string Yes
subject_id string Yes
subject_type string Yes

Responses

StatusDescriptionSchema
200Check resultgitee_com_linmes_authms_base_dto.DataResponse-handler_rebacCheckResponse
400Invalid request parametersdto.SimpleResponseWrapper
500Internal errordto.SimpleResponseWrapper

Referenced Schemas

dto.SimpleResponseWrapper

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No

gitee_com_linmes_authms_base_dto.DataResponse-handler_rebacCheckResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data handler.rebacCheckResponse No
message string No
timestamp string No

handler.rebacCheckResponse

FieldTypeRequiredExampleConstraintsDescription
allowed boolean No