Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support endpoint DSL in YAML/JSON #486

Merged
merged 1 commit into from
Sep 21, 2020
Merged

Conversation

lburgazzoli
Copy link
Contributor

Fixes #366

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"

Copy link
Contributor

@davsclaus davsclaus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh this is really nice. Going to make that even easier.

Whoa the schema is 40000 lines - glad its auto generated ;)

@lburgazzoli lburgazzoli merged commit 5c44cb1 into apache:master Sep 21, 2020
@lburgazzoli lburgazzoli deleted the github-366 branch September 21, 2020 17:54
@lburgazzoli
Copy link
Contributor Author

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

@davsclaus
Copy link
Contributor

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

@davsclaus
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support endpoint DSL in YAML/JSON
3 participants