Adding the base path to be included in the swagger docs and appending the proper version to the webapp name

revert-70aa11f8
prabathabey 9 years ago
parent 7e8f38cf16
commit 0f5cf86d04

@ -46,7 +46,7 @@
<artifactId>maven-war-plugin</artifactId> <artifactId>maven-war-plugin</artifactId>
<configuration> <configuration>
<packagingExcludes>WEB-INF/lib/*cxf*.jar</packagingExcludes> <packagingExcludes>WEB-INF/lib/*cxf*.jar</packagingExcludes>
<warName>api#device-mgt#v2.1</warName> <warName>api#device-mgt#v1.1</warName>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>

@ -55,7 +55,7 @@
<property name="resourcePackage" value="org.wso2.carbon.device.mgt.jaxrs"/> <property name="resourcePackage" value="org.wso2.carbon.device.mgt.jaxrs"/>
<property name="version" value="1.0.0"/> <property name="version" value="1.0.0"/>
<property name="host" value="localhost:9443"/> <property name="host" value="localhost:9443"/>
<property name="basePath" value="/"/> <property name="basePath" value="/api/device-mgt/admin/v1.1"/>
<property name="title" value="Device Management Admin Service API Definitions"/> <property name="title" value="Device Management Admin Service API Definitions"/>
<property name="contact" value="dev@wso2.org"/> <property name="contact" value="dev@wso2.org"/>
<property name="license" value="Apache 2.0"/> <property name="license" value="Apache 2.0"/>

@ -25,11 +25,6 @@
<servlet-class> <servlet-class>
org.apache.cxf.transport.servlet.CXFServlet org.apache.cxf.transport.servlet.CXFServlet
</servlet-class> </servlet-class>
<!--<init-param>-->
<!--<param-name>swagger.api.basepath</param-name>-->
<!--<param-value>http://localhost:9763/test</param-value>-->
<!--</init-param>-->
<!-- configure a security filter --> <!-- configure a security filter -->
<init-param> <init-param>
<param-name>swagger.security.filter</param-name> <param-name>swagger.security.filter</param-name>

Loading…
Cancel
Save