This is an automated email from the ASF dual-hosted git repository.

klease pushed a commit to branch chucknorris
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot-examples.git

commit 6cb5a1e2e7015cfcacd897898714d64bb6d9cf38
Author: klease <kle...@cegetel.net>
AuthorDate: Tue Sep 27 22:24:57 2022 +0200

    CAMEL-18554: fix yaml syntax, URL and json path for chucknorris example
---
 .../src/main/resources/kamelets/chuck-norris-source.kamelet.yaml  | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/kamelet-chucknorris/src/main/resources/kamelets/chuck-norris-source.kamelet.yaml
 
b/kamelet-chucknorris/src/main/resources/kamelets/chuck-norris-source.kamelet.yaml
index 75be465..aa60e29 100644
--- 
a/kamelet-chucknorris/src/main/resources/kamelets/chuck-norris-source.kamelet.yaml
+++ 
b/kamelet-chucknorris/src/main/resources/kamelets/chuck-norris-source.kamelet.yaml
@@ -30,13 +30,13 @@ spec:
     - "camel:timer"
     - "camel:http"
     - "camel:jsonpath"
-  flow:
+  template:
     from:
       uri: "timer:chuck"
       parameters:
         period: "{{period}}"
       steps:
-        - to: "http://api.icndb.com/jokes/random";
+        - to: "https://api.chucknorris.io/jokes/random";
         - set-body:
-            jsonpath: "$.value.joke"
-        - to: "kamelet:sink"
\ No newline at end of file
+            jsonpath: "$.value"
+        - to: "kamelet:sink"

Reply via email to