I'm using Jboss Fuse 6.3 and having problem to use hawtio-swagger. Only works
with version of swagger spec 1.2 (DefaultCamelSwaggerServlet), but when
using camel-swagger-java:2.17.0.redhat-630187 doesn't work.

Using DefaulCamelSwaggerServlet (camel-swagger)

<osgi:service id="httpServletService"
interface="javax.servlet.http.HttpServlet" ref="swaggerServlet">
    <service-properties>
        <entry key="alias" value="/api-docs/*"/>
        <entry key="init-prefix" value="init."/>
        <entry key="init.cors" value="true"/>
        <entry key="init.base.path" value="ati-nta/rest"/>
        <entry key="init.api.path" value="/api-docs"/>
        <entry key="init.api.title" value="ATI NAJ API"/>
        <entry key="init.api.version" value="1.0.0"/>
        <entry key="init.api.description" value="ATI - NAJ REST service"/>
    </service-properties>
</osgi:service>

<bean id="swaggerServlet"
class="org.apache.camel.component.swagger.DefaultCamelSwaggerServlet"/>

Using camel-swagger-java:

restConfiguration().contextPath("/ati-nta/rest").component("servlet").dataFormatProperty("prettyPrint",
"true")
    .host("0.0.0.0").port(8181).apiContextPath("/api-docs")
    .apiProperty("init.base.path", "ati-nta/rest")
    .apiProperty("init.api.path", "/api-docs")
    .apiProperty("init.api.description", "Serviços de consulta NAJ -
www.gestaonaj.pe.gov.br")
    .apiProperty("api.title", "NAJ REST service")
    .apiProperty("api.version", "1.0.0")
    .apiProperty("cors", "true");


The hawtio-swagger works in first case, but not in second.

1. camel-swagger
<http://camel.465427.n5.nabble.com/file/n5809544/swagger-docs1.png> 

2. camel-swagger-java

<http://camel.465427.n5.nabble.com/file/n5809544/swagger-docs2.png> 




--
View this message in context: 
http://camel.465427.n5.nabble.com/fabric-hawtio-swagger-swagger-version-tp5809544.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to