Hi

Currently only spring is supported out of the box. You would need to
implement a custom code to lookup the camel contexts from cdi

eg something like this but for cdi
https://github.com/apache/camel/blob/master/components/camel-swagger/src/main/scala/org/apache/camel/component/swagger/spring/SpringRestSwaggerApiDeclarationServlet.scala

We love contributions so if you get something working you are welcome
to contribute back
http://camel.apache.org/contributing.html

On Wed, Dec 17, 2014 at 8:20 PM, cristianmiranda <cris...@gmail.com> wrote:
> Hi guys,
>
> I'm new to swagger and I want to configure it in my *CDI* application (no
> Spring at all).
> I'm following the pet shop example and this specific one:
> https://github.com/apache/camel/tree/master/examples/camel-example-servlet-rest-tomcat
> just changing from *SpringRestSwaggerApiDeclarationServlet* to
> *ServletListenerRestSwaggerApiDeclarationServlet*
> The rest of the configuration is exactly the same but I can't make it work
> yet. When requesting localhost:8080/api-docs it just doesn't display
> anything (no errors).
>
> Is there any extra configuration that it's required by using
> ServletListenerRestSwaggerApiDeclarationServlet?
>
> Any ideas?
>
> Thanks in advance
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-REST-Swagger-configuration-tp5760839.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Reply via email to