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

service and route not created when using --open-api parameter #843

Closed
brunoNetId opened this issue Jul 19, 2019 · 3 comments
Closed

service and route not created when using --open-api parameter #843

brunoNetId opened this issue Jul 19, 2019 · 3 comments

Comments

@brunoNetId
Copy link
Contributor

As discussed with:
@lburgazzoli

A camel route like this:

creates both a service and a route

but when using the parameter --open-api and defining the route as:

the service and route seem not to be created, and the Integration shows as follows:
image

@lburgazzoli
Copy link
Contributor

lburgazzoli commented Jul 20, 2019

I did run the greetings integration with the latest code with the following command:

kamel run \
    --dev \
    --name greetings \
    --dependency camel-undertow \
    --dependency camel:rest \
    --dependency mvn:org.apache.camel.k/camel-k-loader-xml \
    --property camel.rest.port=8080 \
    --open-api examples/greetings-api.json \
    --logging-level org.apache.camel.k=DEBUG \
    examples/greetings.groovy 

And what I have on minishift is:

image

There is an issue that prevents the generated Rest DSL to be taken into account by the source analyzer so the following two dependencies are needed:

  • org.apache.camel/camel-rest
  • org.apache.camel.k/camel-k-loader-xml

@lburgazzoli lburgazzoli added the status/waiting-for-feedback Needs some feedback label Jan 1, 2020
@lburgazzoli
Copy link
Contributor

@brunoNetId can we close this one ?

@github-actions
Copy link
Contributor

github-actions bot commented Jun 6, 2020

This issue is stale because it has been open 30 days with no activity.
Remove stale label or comment or this will be closed in 7 days.

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

No branches or pull requests

2 participants