Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add POST / endpoint for default decisions #78

Merged
merged 3 commits into from
May 16, 2024

Conversation

charlesdaniels
Copy link
Member

As described here, the OPA API allows for "default decisions" to be made against a configurable "default rule". To support enabling this feature from the SDKs, I have added an appropriate endpoint to OpenAPI spec. Note that unlike the /v1/data/{path} endpoints, / does not require wrapping the input with {"input": ... }, nor does it wrap the result in {"result": ...}.

As described
[here](https://www.openpolicyagent.org/docs/latest/rest-api/), the OPA
API allows for "default decisions" to be made against a configurable
"default rule". To support enabling this feature from the SDKs, I have
added an appropriate endpoint to OpenAPI spec. Note that unlike the
/v1/data/{path} endpoints, / does not require wrapping the input with
`{"input": ... }`, nor does it wrap the result in `{"result": ...}`.
openapi/openapi.yaml Outdated Show resolved Hide resolved
@charlesdaniels
Copy link
Member Author

I was wondering why this wasn't merged... then I remembered it was my PR 🙃

@charlesdaniels charlesdaniels merged commit 07d3bde into main May 16, 2024
@charlesdaniels charlesdaniels deleted the charles/add-default-policy-endpoint branch May 16, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants