camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Eisele <eisele.mar...@gmail.com>
Subject Re: Camel REST + Swagger [configuration]
Date Tue, 23 Dec 2014 16:32:32 GMT
Great news!

I love generalizations ;)

Can you do me a favor and make the initialization for api.path and
bath.path also automatic for Java EE based containers?

Thanks,
Markus

On 23 December 2014 at 15:19, Claus Ibsen <claus.ibsen@gmail.com> wrote:
> Hi
>
> Okay got the JMX done, so in Camel 2.15 onwards, it should work out of the box.
>
> On Thu, Dec 18, 2014 at 7:21 AM, Claus Ibsen <claus.ibsen@gmail.com> wrote:
>> Hi
>>
>> I logged a ticket to use jmx instead which means it would work for
>> anyone. At first glance it looks as that should be doable.
>> https://issues.apache.org/jira/browse/CAMEL-8161
>>
>> On Thu, Dec 18, 2014 at 7:17 AM, Claus Ibsen <claus.ibsen@gmail.com> wrote:
>>> 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 <crism60@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: cibsen@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/
>>
>>
>>
>> --
>> Claus Ibsen
>> -----------------
>> Red Hat, Inc.
>> Email: cibsen@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/
>
>
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> Email: cibsen@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/

Mime
View raw message