This is a repository which contains example usage of queryForDocument method from opa-java-client repository.
Policies are stored in examples/query-for-document/src/opa/policies/rules.
Enter terminal in examples/query-for-document directory.
Please run firstly OPA server with
docker-compose up.
Subsequently, run main application with
./gradlew run
or gradlew.bat run(Windows)
If you need more examples, please create issue in opa-java-client repository.