$ yarn install
# development
$ yarn start
# watch mode
$ yarn start:dev
# production mode
$ yarn start:prod
# unit tests
$ yarn test
# e2e tests
$ yarn test:e2e
# test coverage
$ yarn test:cov
curl -X 'POST' \
'http://localhost:3000/execute' \
-H 'accept: */*' \
-H 'Content-Type: multipart/form-data' \
-F '[email protected];type=application/json' \
-F 'input=@input_2.json;type=application/json' \
-F 'policy=@pkg_utilitu.rego' \
-F '[email protected]' \
-F '[email protected];type=application/json' \
-F 'query=result := data' \
-F 'resultPath=result.*.bindings.result'
http://localhost:3000/apiDoc
docker build -t opa-service:dev .
docker run --name some-opa-service -p 3000:3000 -d opa-service:dev
Opa Service is MIT licensed.