camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arnaud Deprez <arnaudep...@gmail.com>
Subject Re: camel-swagger in karaf
Date Thu, 16 Jul 2015 11:46:04 GMT
It was plain pojos, but I just test it by adding the annotation @ApiModel
 and @ApiModelProperty on my pojos and it's still doesn't work.

On Thu, Jul 16, 2015 at 1:18 PM Claus Ibsen <claus.ibsen@gmail.com> wrote:

> Hi
>
> Ah okay is your model annotate with swagger annotations or just plain
> pojos?
>
> On Thu, Jul 16, 2015 at 1:10 PM, Arnaud Deprez <arnaudeprez@gmail.com>
> wrote:
> > Hi,
> >
> > Thanks for your quick answer.
> >
> > I've tried to add either a file org.apache.camel.cfg and
> > jmx.acl.org.apache.camel.cfg that has * = * and I still have the same
> > issue, even after restarting my karaf.
> >
> > On Thu, Jul 16, 2015 at 12:32 PM Claus Ibsen <claus.ibsen@gmail.com>
> wrote:
> >
> >> Hi
> >>
> >> Also I remember one of the problems was the new RBAC in karaf, so you
> >> need to bypass that so swagger can get the model from camel
> >>
> >> We are doing this out of the box in a future release
> >>
> >>
> https://github.com/apache/camel/commit/dcdc7760ad4b382bb6e197190443e48e6ff2cdd7
> >>
> >> But for current you need to setup this manually in karaf rbac. Its a
> >> bit confusing to do so, but look in the etc dir and create a file that
> >> starts with org.apache.camel and has that * = *
> >>
> >>
> >>
> >> On Thu, Jul 16, 2015 at 12:19 PM, Claus Ibsen <claus.ibsen@gmail.com>
> >> wrote:
> >> > Hi
> >> >
> >> > A while back there was a thread about swagger on karaf. Can you find
> >> > that I think it has some pointers to get it working.
> >> >
> >> >
> >> >
> >> > On Thu, Jul 16, 2015 at 11:48 AM, Arnaud Deprez <
> arnaudeprez@gmail.com>
> >> wrote:
> >> >> Hi guys,
> >> >>
> >> >> I don't know if this mail is for camel folks or karaf folks.
> >> >>
> >> >> I'm using camel 2.15.2 with its REST DSL and camel-swagger in an OSGi
> >> >> environment (I tried both karaf 2.4.3 and karaf 4).
> >> >>
> >> >> I'm using the servlet component by exposing it as OSGi services :
> >> >>
> >> >>    - CamelHttpTransportServlet for my camel route
> >> >>    - DefaultCamelSwaggerServlet for the swagger documentation.
> >> >>
> >> >> Then I use the swagger ui to see the documentation.
> >> >>
> >> >> I can see my rest endpoint and the documentation I put in
> "description"
> >> but
> >> >> it's not able to show me the model for the request and the response
> >> >> (defined in "type" and "outType").
> >> >>
> >> >> However if I use the same routes and the same servlet in a
> spring-boot
> >> >> environment, it works like a charm.
> >> >>
> >> >> I tried to find some information on the web but I didn't find
> anything
> >> >> about missing supports or bug with karaf and camel and the latest
> >> version.
> >> >>
> >> >> So is it a known bug ? Or camel will support it in future version ?
> Or
> >> is
> >> >> it a lack of support in karaf ?
> >> >>
> >> >> Regards,
> >> >>
> >> >> A.
> >> >
> >> >
> >> >
> >> > --
> >> > Claus Ibsen
> >> > -----------------
> >> > http://davsclaus.com @davsclaus
> >> > Camel in Action 2nd edition: http://www.manning.com/ibsen2
> >>
> >>
> >>
> >> --
> >> Claus Ibsen
> >> -----------------
> >> http://davsclaus.com @davsclaus
> >> Camel in Action 2nd edition: http://www.manning.com/ibsen2
> >>
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2nd edition: http://www.manning.com/ibsen2
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message