A AuthMS API Wiki API Reference iam.tianv.com →

POST /admin/relationships/check

基于关系型访问控制模型,检查指定主体对目标对象的关系是否存在

角色权限 `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
200检查结果gitee_com_linmes_authms_base_dto.DataResponse-handler_rebacCheckResponse
400请求参数无效dto.SimpleResponseWrapper
500内部错误dto.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