File tree Expand file tree Collapse file tree
docs/modules/opa/examples/getting_started Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ sleep 5
7474
7575request_hello () {
7676# tag::request-hello[]
77- curl -s http://localhost:8081/v1/data/test/hello
77+ curl -s http://localhost:8081/v1/data/test/hello -d ' {"input": {}} '
7878# end::request-hello[]
7979}
8080
9191
9292request_world () {
9393# tag::request-world[]
94- curl -s http://localhost:8081/v1/data/test/world
94+ curl -s http://localhost:8081/v1/data/test/world -d ' {"input": {}} '
9595# end::request-world[]
9696}
9797
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ sleep 5
7474
7575request_hello () {
7676# tag::request-hello[]
77- curl -s http://localhost:8081/v1/data/test/hello
77+ curl -s http://localhost:8081/v1/data/test/hello -d ' {"input": {}} '
7878# end::request-hello[]
7979}
8080
9191
9292request_world () {
9393# tag::request-world[]
94- curl -s http://localhost:8081/v1/data/test/world
94+ curl -s http://localhost:8081/v1/data/test/world -d ' {"input": {}} '
9595# end::request-world[]
9696}
9797
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ metadata:
55 name : simple-opa
66spec :
77 image :
8- productVersion : " 0.67.1 "
8+ productVersion : " 1.0.0 "
99 servers :
1010 roleGroups :
1111 default : {}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ metadata:
55 name: simple-opa
66spec:
77 image:
8- productVersion: "0.67.1 "
8+ productVersion: "1.0.0 "
99 servers:
1010 roleGroups:
1111 default: {}
Original file line number Diff line number Diff line change 99 test.rego : |
1010 package test
1111
12- hello {
12+ hello if {
1313 true
1414 }
1515
16- world {
16+ world if {
1717 false
1818 }
You can’t perform that action at this time.
0 commit comments