Sorry for the bother. I found a solution:
- Defining a features bean
- Adding swagger2feature to it
- Proving the new feature list to cxfrs component.
```
@Bean(name = "features")
public List features() {
ServerFactoryBean sfb = new ServerFactoryBean();
...
Swagger2Feature fe
I've read in a number of places that the way to integrate Swagger with
Camel CXFRS is by using `Swagger2Feature`. I already have a working Camel
CXFRS service whose API docs I'd like to access through a URL.
>From what I've seen this is supposed to be done like this:
```
Swagger2Feature feat
er-api/swagger-codegen/wiki/
> Server-stub-generator-HOWTO
>
> Pls let me know how you are doing with it...
>
> Best regards,
> Johannes
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.
> com/CXFRS-swagger-integration-tp5787041p5787169.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
this message in context:
http://camel.465427.n5.nabble.com/CXFRS-swagger-integration-tp5787041p5787169.html
Sent from the Camel - Users mailing list archive at Nabble.com.
F 3.1.7 it works by allocating another JAX-RS root resource to the
>>> current endpoint - which unfortunately does not work for a Camel route.
>>>
>>> Swagger.json generation is also supported by default by an extra JAX-RS
>>> root resource which is also not good
Camel route - this is why
Swagger2Feature.runAsFilter=true helps but as I noted above SwaggerUI
resource can not be available as a filter in CXF 3.1.7.
I've just fixed it for CXF 3.1.8-SNAPSHOT
Sergey
--
View this message in context: http://camel.465427.n5.nabble.
com/CXFRS-swagger-integration-tp
ger2Feature.runAsFilter=true helps but as I noted above SwaggerUI
> resource can not be available as a filter in CXF 3.1.7.
>
> I've just fixed it for CXF 3.1.8-SNAPSHOT
>
> Sergey
>
>
>
>>
>>
>> --
>> View this message in context: http://camel.465427.n5.nabble.
>> com/CXFRS-swagger-integration-tp5787041p5787072.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
>
unAsFilter=true helps but as I noted above SwaggerUI
resource can not be available as a filter in CXF 3.1.7.
I've just fixed it for CXF 3.1.8-SNAPSHOT
Sergey
--
View this message in context:
http://camel.465427.n5.nabble.com/CXFRS-swagger-integration-tp5787041p5787072.html
Sent from th
/swagger.json
when i follow the link
"http://localhost:8080/api/rest/api-docs?url=/api/rest/swagger.json"; again
this request comes to the route which is not I was expecting.
--
View this message in context:
http://camel.465427.n5.nabble.com/CXFRS-swagger-integration-tp5787041p5787072.html
Try Swagger2Feature 'runAsFilter' property
Sergey
On 31/08/16 12:23, Kasim Sert (Ibtech-Software Infrastructure) wrote:
Hi,
I have defined cxfrs route and its working fine. However when I integrate
swagger2feature of cxf I can not see api docs. When i hit swagger.json path to
get swagger resp
Hi,
I have defined cxfrs route and its working fine. However when I integrate
swagger2feature of cxf I can not see api docs. When i hit swagger.json path to
get swagger response the request again hits my route which produces wrong
response.
I think requests for swagger api should not hit my rou
context:
http://camel.465427.n5.nabble.com/cxfrs-swagger-tp5777892p5777938.html
Sent from the Camel - Users mailing list archive at Nabble.com.
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
to get swagger going with camel cxfrs? Is there an
example anywhere? Are there specific versions of stuff to use, if you know?
--
View this message in context:
http://camel.465427.n5.nabble.com/cxfrs-swagger-tp5777892.html
Sent from the Camel - Users mailing list archive at Nabble.com.
th camel cxfrs? Is there an
example anywhere? Are there specific versions of stuff to use, if you know?
--
View this message in context:
http://camel.465427.n5.nabble.com/cxfrs-swagger-tp5777892.html
Sent from the Camel - Users mailing list archive at Nabble.com.
--
Sergey Beryozkin
Tal
tFeatures().add(feature);
--
View this message in context:
http://camel.465427.n5.nabble.com/cxfrs-swagger-tp5777892p5777938.html
Sent from the Camel - Users mailing list archive at Nabble.com.
there an
> example anywhere? Are there specific versions of stuff to use, if you know?
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/cxfrs-swagger-tp5777892.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus
ere? Are there specific versions of stuff to use, if you know?
--
View this message in context:
http://camel.465427.n5.nabble.com/cxfrs-swagger-tp5777892.html
Sent from the Camel - Users mailing list archive at Nabble.com.
17 matches
Mail list logo