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/09/21 16:47:07 UTC

[GitHub] [camel-k-runtime] lburgazzoli opened a new pull request #486: Support endpoint DSL in YAML/JSON

lburgazzoli opened a new pull request #486:
URL: https://github.com/apache/camel-k-runtime/pull/486


   Fixes #366
   
   
   <!-- Description -->
   
   
   
   
   <!--
   Enter your extended release note in the below block. If the PR requires
   additional action from users switching to the new release, include the string
   "action required". If no release note is required, write "NONE". 
   
   You can (optionally) mark this PR with labels "kind/bug" or "kind/feature" to make sure
   the text is added to the right section of the release notes. 
   -->
   
   **Release Note**
   ```release-note
   The YAML DSL now supports to use an endpoint-dsl alike structure, like:
   
   - route:
       from:
         direct:
           name: "endpoint"
           timeout: "#property:direct.timeout"
       steps:
         - telegram:
             type: "bots"
             authorization-token: "#property:telegram.token"
         - mock:
             name: "telegram"
   ```


----------------------------------------------------------------
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



[GitHub] [camel-k-runtime] lburgazzoli commented on pull request #486: Support endpoint DSL in YAML/JSON

Posted by GitBox <gi...@apache.org>.
lburgazzoli commented on pull request #486:
URL: https://github.com/apache/camel-k-runtime/pull/486#issuecomment-696334685


   @davsclaus the main issue about this implementation is that it requires the camel catalog to look up the Json and construct the URI, wonder if we can use something similar to the component customizer where the catalog searches for some "factory" that provides an auto generated code to construct the endpoint URI from a map of properties and if does not find it, it fall-back to the original mechanic.


----------------------------------------------------------------
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



[GitHub] [camel-k-runtime] lburgazzoli merged pull request #486: Support endpoint DSL in YAML/JSON

Posted by GitBox <gi...@apache.org>.
lburgazzoli merged pull request #486:
URL: https://github.com/apache/camel-k-runtime/pull/486


   


----------------------------------------------------------------
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



[GitHub] [camel-k-runtime] davsclaus commented on pull request #486: Support endpoint DSL in YAML/JSON

Posted by GitBox <gi...@apache.org>.
davsclaus commented on pull request #486:
URL: https://github.com/apache/camel-k-runtime/pull/486#issuecomment-696554287


   We can actually also use this in the http components where we do some endpoint uri rebulding, that could benefit from this.


----------------------------------------------------------------
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



[GitHub] [camel-k-runtime] davsclaus commented on pull request #486: Support endpoint DSL in YAML/JSON

Posted by GitBox <gi...@apache.org>.
davsclaus commented on pull request #486:
URL: https://github.com/apache/camel-k-runtime/pull/486#issuecomment-696554116






----------------------------------------------------------------
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



[GitHub] [camel-k-runtime] lburgazzoli commented on pull request #486: Support endpoint DSL in YAML/JSON

Posted by GitBox <gi...@apache.org>.
lburgazzoli commented on pull request #486:
URL: https://github.com/apache/camel-k-runtime/pull/486#issuecomment-696334685


   @davsclaus the main issue about this implementation is that it requires the camel catalog to look up the Json and construct the URI, wonder if we can use something similar to the component customizer where the catalog searches for some "factory" that provides an auto generated code to construct the endpoint URI from a map of properties and if does not find it, it fall-back to the original mechanic.


----------------------------------------------------------------
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



[GitHub] [camel-k-runtime] lburgazzoli merged pull request #486: Support endpoint DSL in YAML/JSON

Posted by GitBox <gi...@apache.org>.
lburgazzoli merged pull request #486:
URL: https://github.com/apache/camel-k-runtime/pull/486


   


----------------------------------------------------------------
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



[GitHub] [camel-k-runtime] davsclaus commented on pull request #486: Support endpoint DSL in YAML/JSON

Posted by GitBox <gi...@apache.org>.
davsclaus commented on pull request #486:
URL: https://github.com/apache/camel-k-runtime/pull/486#issuecomment-696554116


   Yeah that is a good idea. I created a ticket
   https://issues.apache.org/jira/browse/CAMEL-15567


----------------------------------------------------------------
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