Skip to content

Files

Latest commit

 

History

History

query-for-document

Query For Document example

Introduction

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.

Usage

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)

More examples

If you need more examples, please create issue in opa-java-client repository.