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
| 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 |
|
|
|