<cxf:rsServer id="restv1Service"
address="${services.rest.url.prefix}/api/v1/service"
staticSubresourceResolution="true" >
<cxf:serviceBeans>
<ref bean="restRequestResourceBean" />
<ref bean="swaggerResourceJSON" />
<ref bean="swaggerResourceXML" />
</cxf:serviceBeans>
<cxf:extensionMappings>
<entry key="json" value="application/json" />
<entry key="xml" value="application/xml" />
</cxf:extensionMappings>
<cxf:providers>
<ref bean="jsonProvider" />
<ref bean="jaxbProvider" />
<ref bean="securityContext" />
</cxf:providers>
<cxf:properties>
<entry key="application" value-ref="basicApplication"/>
</cxf:properties>
<cxf:outInterceptors>
<ref bean="loggingOutInterceptor"/>
</cxf:outInterceptors>
<cxf:inInterceptors>
<ref bean="loggingInInterceptor"/>
</cxf:inInterceptors>
</cxf:rsServer>
I am wondering, the swagger documentation mentioned the swagger.api.basepath, swagger.version, and api.version are important. If you therefore claim that the web.xml isnt important or useful, how will Swager be able to get these values?
I am still not able to expose my REST API with swagger. I will appreciate whatever help you can give.