Ask Red Hat Customer Portal about support for the JBoss Fuse product.

They provide developer support as well for their product and can tell
you how to use swagger with it.

On Thu, Jan 19, 2017 at 4:24 PM, cyberluke <[email protected]> wrote:
> The first link for camel-swagger-java is using jetty, not cxf.
>
> Plus there is a problem with restConfiguration apiProperty in Blueprint:
> Description     Resource        Path    Location        Type
> cvc-complex-type.2.4.a: Invalid content was found starting with element
> 'apiProperty'. One of
> '{"http://camel.apache.org/schema/blueprint":dataFormatProperty,
> "http://camel.apache.org/schema/blueprint":corsHeaders}' is expected.
>
> Description     Resource        Path    Location        Type
> cvc-complex-type.3.2.2: Attribute 'apiContextPath' is not allowed to appear
> in element 'restConfiguration'.
>
> Am I missing some XSD? You don't have it in your example as well.
>
>
> Anyway your CXF with Swagger2Feature example will compile, but no
> Swagger.json is produced:
>     <bean class="com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider"
> id="jsonProvider"/>
>
>     <bean id="swagger2Feature"
> class="org.apache.cxf.jaxrs.swagger.Swagger2Feature">
>
>         <property name="basePath" value="/cxf/swaggerSample"/>
>     </bean>
>
>
>
>     <cxf:rsServer address="http://localhost:8080/rest"; id="customerService">
>         <cxf:serviceBeans>
>             <ref component-id="tenantService"/>
>         </cxf:serviceBeans>
>         <cxf:providers>
>             <ref component-id="jsonProvider"/>
>         </cxf:providers>
>         <cxf:features>
>             <ref component-id="swagger2Feature" />
>         </cxf:features>
>     </cxf:rsServer>
>
> All of these returns 404:
> http://localhost:8080/rest/cxf/swaggerSample/
> http://localhost:8080/rest/cxf/swaggerSample/swagger.json
> http://localhost:8080/cxf/swaggerSample/swagger.json
>
> The REST service itself is working though. I'm using Apache CXF 3.1.5
> (Redhat bundle), not 3.1.7.
>
> Does this feature require Swagger Java annotations for a service? Currently
> I use annotations from package com.wordnik.swagger from some of the Camel
> examples. There is also a possibility to use io.swagger.annotations.Api,
> which is newer I guess, but it requires another pom dependency.
>
> EDIT: Now I tried io.swagger annotations and I still get the same 404
> pom.xml:
> <dependency>
>     <groupId>io.swagger</groupId>
>     <artifactId>swagger-annotations</artifactId>
>     <version>1.5.12</version>
> </dependency>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Swagger-SwaggerUI-CXFRS-Blueprint-example-tp5792817p5792820.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to