Does OPA have a REST API that accepts both JSON & REGO to make a decision? #289
Unanswered
scaledapps
asked this question in
OPA and Rego
Replies: 1 comment 5 replies
-
Hi @scaledapps You should be able to use the query API to complete this. https://www.openpolicyagent.org/docs/latest/rest-api/#execute-an-ad-hoc-query If you can share some sample rego and data, that would help to generate the sample curl request. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Does OPA have a REST API that accepts both JSON & REGO to make a decision, instead of making calls to 2 separate APIs as follows?
I need an API similar the following command:
./opa eval -i input1.json -d policy1.rego
Beta Was this translation helpful? Give feedback.
All reactions