POST /admin/relationships/check
基于关系型访问控制模型,检查指定主体对目标对象的关系是否存在
角色权限 `bearerAuth` application/json
Request Body
Schema: handler.rebacCheckRequest
| Field | Type | Required | Example | Constraints | Description |
object_id |
string |
Yes |
|
|
|
object_type |
string |
Yes |
|
|
|
relation |
string |
Yes |
|
|
|
subject_id |
string |
Yes |
|
|
|
subject_type |
string |
Yes |
|
|
|
Referenced Schemas
dto.SimpleResponseWrapper
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
gitee_com_linmes_authms_base_dto.DataResponse-handler_rebacCheckResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
handler.rebacCheckResponse |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
handler.rebacCheckResponse
| Field | Type | Required | Example | Constraints | Description |
allowed |
boolean |
No |
|
|
|