Please have a look at my working example. When I get it all working, and cleaned up, I can submit it as one of the camel example modules, if that would be helpful. I would make the project resemble the other examples as closely as possible. I thought that being able to include the actuator endpoints would be a good illustration of how other REST endpoints could be included with the camel rest information.
On Sat, Oct 9, 2021 at 10:59 AM Steve973 <steve...@gmail.com> wrote: > Thank you, Claus. I have been chipping away at this problem, and it is > quite possible to point springdoc to the generated swagger JSON. In my > application.yml: > > springdoc: > show-actuator: true > swagger-ui: > disable-swagger-default-url: true > url: /api/api-doc > > You can see that I have "show-actuator: true", but I have not gotten this > to work, yet. I don't suppose that there is any way to have the camel > openapi java component include this in its openapi doc generation, is there? > > On Sat, Oct 9, 2021 at 10:11 AM Claus Ibsen <claus.ib...@gmail.com> wrote: > >> Hi >> >> At first thought I would assume springdoc needs a way to discover the >> Camel Rest DSL model (api doc). >> And maybe this can be done by exposing a bean into Spring that is of >> type OpenApi >> >> @Bean >> public OpenApi camelRestDsl() { >> ... // some code here that gathers the camel rest-dsl model and >> return as bean >> } >> >> However I am only speculating. >> >> You can try to add a custom method in your sample app and just >> hardcode some bogus open api model as above and see if springdoc >> detects this. >> >> Otherwise it can help if you have time to read into springodc how to >> integrate with custom frameworks. >> >> >> >> On Sat, Oct 9, 2021 at 1:37 PM Steve973 <steve...@gmail.com> wrote: >> > >> > Hi, Claus. Thank you for the reply! You can find springdoc here: >> > https://springdoc.org/ and I moved my project from using springfox >> because >> > springfox has only one developer, and springdoc is maintained by a >> > community. The artifact that I am using is >> > "org.springdoc:springdoc-openapi-ui:1.5.11". I am using Spring Boot >> 2.5.5, >> > and Camel 3.12.0. So that you can also see what I am doing, in case I >> am >> > doing something that is prohibiting the Camel OpenAPI functionality from >> > working correctly, I pushed my example to Github: >> > https://github.com/Steve973/spring-camel-rest-experiments where I am >> trying >> > out a minimal example just to see if I can get it working. Thanks >> again! >> > >> > Steve >> > >> > On Sat, Oct 9, 2021 at 3:23 AM Claus Ibsen <claus.ib...@gmail.com> >> wrote: >> > >> > > Hi >> > > >> > > I have not tried that myself, can you maybe point links to where this >> > > spring ui exists? >> > > And what version of SB and Camel are you using? >> > > >> > > >> > > On Sat, Oct 9, 2021 at 12:37 AM Steve973 <steve...@gmail.com> wrote: >> > > > >> > > > Hello. I am using spring boot with the camel rest dsl and it is >> working >> > > > great. I can also have swagger JSON generated and accessible. But >> I >> > > would >> > > > like to use the springdoc openapi user interface to interact with >> my rest >> > > > endpoints. I have tried for hours, and I have not been able to get >> the >> > > UI >> > > > to come up. Does anyone know if it is possible to use camel-rest >> and the >> > > > springdoc openapi user interface together? >> > > >> > > >> > > >> > > -- >> > > Claus Ibsen >> > > ----------------- >> > > http://davsclaus.com @davsclaus >> > > Camel in Action 2: https://www.manning.com/ibsen2 >> > > >> >> >> >> -- >> Claus Ibsen >> ----------------- >> http://davsclaus.com @davsclaus >> Camel in Action 2: https://www.manning.com/ibsen2 >> >