Check
POST/policy-svc/check
Check records a resource access and returns if the access is allowed.
Request
- application/json
Body
required
Check Request
endpoint string
ip string
method string
userId string
Responses
- 200
- 400
- 401
- 500
Checked successfully
- application/json
- Schema
- Example (from schema)
Schema
allowed booleanrequired
{
"allowed": true
}
Invalid JSON
- application/json
- Schema
- Example (from schema)
Schema
error string
{
"error": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
error string
{
"error": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
error string
{
"error": "string"
}
Loading...