camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sberyoz...@gmail.com>
Subject Re: camel cxfrs with swagger.
Date Mon, 22 Dec 2014 11:08:08 GMT
Andriy Redko (CXF colleague of mine) and myself worked on getting CXF 
SwaggerFeature running as JAX_RS 2.0 filter - this should make sure it 
is effective with cxfrs too - you may want to experiment with updating 
the cxfrs dependencies to CXF 3.0.4-SNAPSHOT

Cheers, Sergey

On 11/12/14 21:53, Sergey Beryozkin wrote:
> On 11/12/14 20:12, gquintana wrote:
>> I don't fully understand your proposal.
> I thought the problem was /api-docs was not reaching the  endpoint at
> all, so the idea was to make sure it is covered by a "/camel" URI
> sub-space, part of the endpoint address but then redirect to the swagger
> endpoint...
>>
>> After digging bit, I came to the conclusion that it wasn't the server
>> declaration which was different, but the fact that the consumer was
>> installing the CxfRsInvoker in the server which changed everything. The
>> CxfRsInvoker swallows all requests to produce Camel exchanges and never
>> calls the registered service beans.
>>
> I think a cxf swagger feature may need to be updated for it to run as a
> pre-matching filter so that it can directly invoke on the swagger
> resource. Perhaps a Swagger resource itself should implement
> ContainerRequestFilter optionally... That can be investigated further on
> the cxf end.
> The other long pending enhancement that needs to be implemented asap,
> CXFRS should ship CXF interceptors which can let a regular CXF endpoint
> seamlessly integrate into a route - I'll try to prioritize and create a
> patch
>
> Sergey
>
>> GĂ©rald
>>
>>
>>
>> --
>> View this message in context:
>> http://camel.465427.n5.nabble.com/camel-cxfrs-with-swagger-tp5757720p5760599.html
>>
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>
>


Mime
View raw message