From 9b9528363b6d4c5846eeb73b64fd052b2c86a22c Mon Sep 17 00:00:00 2001 From: Felix Roberge Date: Wed, 16 Mar 2022 10:35:32 -0400 Subject: [PATCH] Fix the readme curl command and native build --- .../process-saga-quarkus/README.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/kogito-quarkus-examples/process-saga-quarkus/README.md b/kogito-quarkus-examples/process-saga-quarkus/README.md index a7f1f6aa7f..53dcc9a562 100644 --- a/kogito-quarkus-examples/process-saga-quarkus/README.md +++ b/kogito-quarkus-examples/process-saga-quarkus/README.md @@ -69,7 +69,7 @@ java -jar target/process-saga-quarkus-runner.jar Note that this requires GRAALVM_HOME to point to a valid GraalVM installation ``` -mvn clean package -Pnative +mvn clean package -Dnative ``` To run the generated native executable, generated in `target/`, execute @@ -111,7 +111,11 @@ Given data: Curl command (using the JSON object above): ```sh -curl -H "Content-Type: application/json" -X POST http://localhost:8080/orders -d '{"orderId" : "03e6cf79-3301-434b-b5e1-d6899b5639aa"}' +curl -X 'POST' \ + 'http://localhost:8080/order' \ + -H 'accept: */*' \ + -H 'Content-Type: application/json' \ + -d '{ "orderId" : "03e6cf79-3301-434b-b5e1-d6899b5639aa"}' ``` The response for the request is returned with attributes representing the response of each step, either success or failure. The `orderResponse` attribute indicates if the order can be confirmed in case of success or @@ -168,7 +172,14 @@ Example: Curl command (using the JSON object above): ```sh -curl -H "Content-Type: application/json" -X POST http://localhost:8080/orders -d '{"orderId" : "03e6cf79-3301-434b-b5e1-d6899b5639aa", "failService" : "PaymentService"}' +curl -X 'POST' \ + 'http://localhost:8080/order' \ + -H 'accept: */*' \ + -H 'Content-Type: application/json' \ + -d '{ + "orderId" : "03e6cf79-3301-434b-b5e1-d6899b5639aa", + "failService" : "PaymentService" +}' ``` Response example: