Skip to content

Commit 49dc59a

Browse files
committed
Updating getting_started
1 parent abe9c8b commit 49dc59a

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

docs/modules/opa/examples/getting_started/getting_started.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ sleep 5
7474

7575
request_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

@@ -91,7 +91,7 @@ fi
9191

9292
request_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

docs/modules/opa/examples/getting_started/getting_started.sh.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ sleep 5
7474

7575
request_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

@@ -91,7 +91,7 @@ fi
9191

9292
request_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

docs/modules/opa/examples/getting_started/opa.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
name: simple-opa
66
spec:
77
image:
8-
productVersion: "0.67.1"
8+
productVersion: "1.0.0"
99
servers:
1010
roleGroups:
1111
default: {}

docs/modules/opa/examples/getting_started/opa.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
name: simple-opa
66
spec:
77
image:
8-
productVersion: "0.67.1"
8+
productVersion: "1.0.0"
99
servers:
1010
roleGroups:
1111
default: {}

docs/modules/opa/examples/getting_started/simple-rule.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ data:
99
test.rego: |
1010
package test
1111
12-
hello {
12+
hello if {
1313
true
1414
}
1515
16-
world {
16+
world if {
1717
false
1818
}

0 commit comments

Comments
 (0)