doru1004 opened a new issue #1581:
URL: https://github.com/apache/camel-k/issues/1581


   I have the following Camel code running with Camel K but I would like to 
transform this code into Yaml.
   
   ```
   GsonDataFormat gson = new GsonDataFormat(MyClass.class);
   from("timer:clock")
               .setBody().header(Exchange.TIMER_COUNTER)
               .setHeader("CamelHttpMethod", constant("GET"))
               .to("http://some.address";)
               .unmarshal(gson)
               .log("${body}")
   ```
   
   If you can point me to an example that I may have missed or ideally some 
documentation that outlines the rules for Camel to Yaml transformation, I would 
be happy to look over them.
   In the absence of that I'm afraid I cannot infer how the yaml code might 
look like so I would require some help to perform this transformation.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to