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

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


The following commit(s) were added to refs/heads/main by this push:
     new 4e3501e  CAMEL-18554: fix yaml syntax, URL and json path for 
chucknorris example (#91)
4e3501e is described below

commit 4e3501ec7e132b92cc8551061fdf69d1218ba19a
Author: klease <38634989+kle...@users.noreply.github.com>
AuthorDate: Tue Sep 27 22:49:31 2022 +0200

    CAMEL-18554: fix yaml syntax, URL and json path for chucknorris example 
(#91)
---
 .../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