You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/07/01 06:09:46 UTC

[GitHub] [camel-k] lburgazzoli commented on issue #1581: Camel to Yaml transformation

lburgazzoli commented on issue #1581:
URL: https://github.com/apache/camel-k/issues/1581#issuecomment-652212621


   Haven't tested but should be something like:
   
   ```yaml
   - from
       uri: "timer:clock"
     steps:
       - set-body:
           header: "CamelTimerCounter"
       - set-header:
           name: "CamelHttpMethod"
           constant: "GET"
       - to:
           uri: "http://some.address"
       - unmarshal:
           json:
             library: "Gson"
             unmarshal-type-name: MyClass
       - log:
           message: "${body}"
   ```


----------------------------------------------------------------
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:
users@infra.apache.org