https://github.com/liemle3893/oap-example
Open Policy Agent example
https://github.com/liemle3893/oap-example
Last synced: 3 months ago
JSON representation
Open Policy Agent example
- Host: GitHub
- URL: https://github.com/liemle3893/oap-example
- Owner: liemle3893
- License: apache-2.0
- Created: 2021-01-05T13:49:40.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-05T13:54:13.000Z (over 4 years ago)
- Last Synced: 2025-01-08T11:41:31.751Z (5 months ago)
- Language: Open Policy Agent
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
Call OPA API:
```shell
$ curl -s -XPOST -H 'Content-type: application/json' -d '{"input":{"user":"liemlhd","action":"read","object":"id123","type":"dog"}}' http://127.0.0.1:8181/v1/data/app/rbac
```