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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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

Reply via email to