9 lines
229 B
Bash
9 lines
229 B
Bash
|
|
# Test a policy decision
|
||
|
|
curl -X POST http://localhost:8181/v1/data/example/allow \
|
||
|
|
-H "Content-Type: application/json" \
|
||
|
|
-d '{
|
||
|
|
"input": {
|
||
|
|
"user": {"role": "admin"},
|
||
|
|
"action": "read"
|
||
|
|
}
|
||
|
|
}'
|