This is an automated email from the ASF dual-hosted git repository.
mweiler pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-examples.git
The following commit(s) were added to refs/heads/main by this push:
new 3e0e9d444 [incubator-kie-issues#1291] Fix README in
process-rest-workitem-multi-quarkus (#1937)
3e0e9d444 is described below
commit 3e0e9d444d03834ca797a66e9f666c30b20bcbc4
Author: Martin Weiler <[email protected]>
AuthorDate: Tue Jun 4 09:40:43 2024 -0600
[incubator-kie-issues#1291] Fix README in
process-rest-workitem-multi-quarkus (#1937)
---
.../process-rest-workitem-multi-quarkus/README.md | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git
a/kogito-quarkus-examples/process-rest-workitem-multi-quarkus/README.md
b/kogito-quarkus-examples/process-rest-workitem-multi-quarkus/README.md
index 05980a906..6f2561e94 100644
--- a/kogito-quarkus-examples/process-rest-workitem-multi-quarkus/README.md
+++ b/kogito-quarkus-examples/process-rest-workitem-multi-quarkus/README.md
@@ -71,6 +71,7 @@ with following content
```json
{
+ "port": 8080,
"inputNumbers": {
"numbers": [
1,
@@ -90,11 +91,11 @@ with following content
Complete curl command can be found below:
```text
-curl -X POST -H 'Content-Type:application/json' -H 'Accept:application/json'
-d '{"inputNumbers" : {"numbers": [1,2,3,4,5,6,7,8,7]}}'
http://localhost:8080/RestExample
+curl -X POST -H 'Content-Type:application/json' -H 'Accept:application/json'
-d '{"inputNumbers" : {"port":8080, "numbers": [1,2,3,4,5,6,7,8,7]}}'
http://localhost:8080/RestExample
```
curl response will be something like this, which includes field `sum`, the
result of multiplying each input number by 8 (that number might differ in your
execution) and summing all of them:
```text
-{"id":"8e79ac60-c0c1-40d0-808e-8d3585307661","randomNumber":8,"sum":344,"inputNumbers":{"numbers":[1,2,3,4,5,6,7,8,7]}}
+{"id":"8e79ac60-c0c1-40d0-808e-8d3585307661","port":8080,"randomNumber":8,"sum":344,"inputNumbers":{"numbers":[1,2,3,4,5,6,7,8,7]}}
```
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]