-
Bug
-
Resolution: Done
-
Major
-
jboss-fuse-6.3
-
None
-
None
-
%
-
Fuse 7.0 Sprint 22
If we have multiple swagger enabled cxf jaxrs endpoints in same bundle, each with different address, the swagger payload should be rendered separately in swagger-ui with different address url. We shouldn't see some clashes nor in one address we render all the endpoints from same bundle.
For instance, if we have configuration like
<jaxrs:server id="customerService" address="/crm"> <jaxrs:serviceBeans> <ref component-id="customerSvc"/> </jaxrs:serviceBeans> <jaxrs:providers> <bean class="com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider"/> </jaxrs:providers> <jaxrs:features> <bean class="org.apache.cxf.jaxrs.swagger.Swagger2Feature"> <property name="title" value="Fabric8:CXF:Quickstarts - Customer Service" /> <property name="description" value="Sample REST-based Customer Service" /> <property name="version" value="${project.version}" /> <property name="resourcePackage" value="org.jboss.fuse.quickstarts.cxf.rest.customer"/> <property name="basePath" value="/cxf/crm"/> <property name="usePathBasedConfig" value="true"/> </bean> </jaxrs:features> </jaxrs:server> <jaxrs:server id="orderService" address="/orm"> <jaxrs:serviceBeans> <ref component-id="orderSvc"/> </jaxrs:serviceBeans> <jaxrs:providers> <bean class="com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider"/> </jaxrs:providers> <jaxrs:features> <bean class="org.apache.cxf.jaxrs.swagger.Swagger2Feature"> <property name="title" value="Fabric8:CXF:Quickstarts - Order Service" /> <property name="description" value="Sample REST-based Order Service" /> <property name="version" value="${project.version}" /> <property name="resourcePackage" value="org.jboss.fuse.quickstarts.cxf.rest.order"/> <property name="basePath" value="/cxf/orm"/> <property name="usePathBasedConfig" value="true"/> </bean> </jaxrs:features> </jaxrs:server>
then in swagger-ui, we should be able to see different swagger payload with address
http://localhost:8181/cxf/orm/swagger.json
http://localhost:8181/cxf/crm/swagger.json
Each have different swagger for different endpoint above only
- relates to
-
ENTESB-7766 Swagger version alignment
-
- Closed
-