Proposal: Create Dynamic Router 2, or modify current Dynamic Router to better reflect the EIP description

2021-10-10 Thread Steve973
A couple of things have bothered me with regard to the current implementation of the Dynamic Router EIP, because I believe that the EIP description was misinterpreted. I think that the current implementation is well enough for use cases where it is appropriate, and it provides a useful feature tha

Re: Possible to use springdoc-openapi-ui with camel-rest-openapi-starter?

2021-10-10 Thread Steve973
My ASF Jira username is Steve973. I'd be glad to take what you have done and create a new module with it. By the way, you might remember a discussion about the implementation of the Dynamic Router EIP that we had a few years ago. I am just now getting around to implementing it in a way that bett

Re: Possible to use springdoc-openapi-ui with camel-rest-openapi-starter?

2021-10-10 Thread Claus Ibsen
Btw you need to set context-path in your SB example, in the restConfiguration .contextPath("/camel") It can also be done in yaml at + # rest and servlet must have matching context-path rest: context-path: /camel component: servlet And then make sure to use the default /camel/*

Re: Possible to use springdoc-openapi-ui with camel-rest-openapi-starter?

2021-10-10 Thread Claus Ibsen
Hi Okay I got this working now. Had to fix a thing in camel-openapi-java https://issues.apache.org/jira/browse/CAMEL-17063 The UI now works and I can see the rest-dsl services and invoke them. Steve, so what is needed is to take that work on https://github.com/apache/camel-spring-boot/tree/CAMEL

Re: Possible to use springdoc-openapi-ui with camel-rest-openapi-starter?

2021-10-10 Thread Claus Ibsen
Hi Okay I have it almost working in the sprindoc UI. However there is a glitch when using servlet as you need to have the servlet run in its own context-path so it does not affect spring-boot, eg that is why it runs with /camel/* by default. However the UI when you click "try it out" then it invok

Re: Possible to use springdoc-openapi-ui with camel-rest-openapi-starter?

2021-10-10 Thread Claus Ibsen
Hi Yeah that is a good idea. However as springdoc is for spring boot only, then lets put it only into camel-spring-boot project. camel-springdoc-starter I have some prototype code I put into camel-openapi-java that can be moved into this new springdoc-starter and used as a starting point. Then y