RM-4565 (Update RM API Explorer dependency and split war files)

This commit is contained in:
Tuna Aksoy
2016-12-16 22:06:47 +00:00
parent c4dc7ef24d
commit b219b4fc89
3 changed files with 15 additions and 7 deletions

View File

@@ -25,6 +25,7 @@
<alfresco.rm.artifactId>alfresco-rm-community-repo</alfresco.rm.artifactId> <alfresco.rm.artifactId>alfresco-rm-community-repo</alfresco.rm.artifactId>
<skip.integrationtests>true</skip.integrationtests> <skip.integrationtests>true</skip.integrationtests>
<alfresco.solr.home>${project.build.directory}/solr/home</alfresco.solr.home> <alfresco.solr.home>${project.build.directory}/solr/home</alfresco.solr.home>
<api.explorer.version>1.4</api.explorer.version>
</properties> </properties>
<build> <build>
@@ -532,11 +533,19 @@
<contextPath>/solr4</contextPath> <contextPath>/solr4</contextPath>
<contextFile>${alfresco.solr.home}/context.xml</contextFile> <contextFile>${alfresco.solr.home}/context.xml</contextFile>
</webapp> </webapp>
<webapp>
<groupId>org.alfresco</groupId>
<artifactId>api-explorer</artifactId>
<version>${api.explorer.version}</version>
<contextPath>/api-explorer</contextPath>
<type>war</type>
<asWebapp>true</asWebapp>
</webapp>
<webapp> <webapp>
<groupId>org.alfresco</groupId> <groupId>org.alfresco</groupId>
<artifactId>alfresco-rm-community-rest-api-explorer</artifactId> <artifactId>alfresco-rm-community-rest-api-explorer</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
<contextPath>/api-explorer</contextPath> <contextPath>/rm-api-explorer</contextPath>
<type>war</type> <type>war</type>
<asWebapp>true</asWebapp> <asWebapp>true</asWebapp>
</webapp> </webapp>

View File

@@ -11,7 +11,7 @@
</parent> </parent>
<properties> <properties>
<alfresco.api.explorer.version>2.0-SNAPSHOT</alfresco.api.explorer.version> <alfresco.api.explorer.version>1.4</alfresco.api.explorer.version>
<swagger-ui.version>2.1.4</swagger-ui.version> <swagger-ui.version>2.1.4</swagger-ui.version>
<maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target> <maven.compiler.target>1.7</maven.compiler.target>
@@ -30,6 +30,9 @@
<overlay> <overlay>
<groupId>org.alfresco</groupId> <groupId>org.alfresco</groupId>
<artifactId>api-explorer</artifactId> <artifactId>api-explorer</artifactId>
<excludes>
<exclude>definitions/*</exclude>
</excludes>
</overlay> </overlay>
</overlays> </overlays>
</configuration> </configuration>

View File

@@ -32,7 +32,7 @@
<script type="text/javascript"> <script type="text/javascript">
$(function () { $(function () {
window.swaggerUi = new SwaggerUi({ window.swaggerUi = new SwaggerUi({
url: "definitions/alfresco-core.yaml", url: "definitions/ig-core-api.yaml",
dom_id: "swagger-ui-container", dom_id: "swagger-ui-container",
supportedSubmitMethods: ['get', 'post', 'put', 'delete'], supportedSubmitMethods: ['get', 'post', 'put', 'delete'],
onComplete: function(swaggerApi, swaggerUi){ onComplete: function(swaggerApi, swaggerUi){
@@ -91,10 +91,6 @@
<form id="api_selector"> <form id="api_selector">
<div class="input" id="select-wrapper"> <div class="input" id="select-wrapper">
<select id="select_baseUrl" name="select_baseUrl"> <select id="select_baseUrl" name="select_baseUrl">
<option value="definitions/alfresco-core.yaml">Core API</option>
<option value="definitions/alfresco-search.yaml">Search API</option>
<option value="definitions/alfresco-auth.yaml">Authentication API</option>
<option value="definitions/alfresco-workflow.yaml">Workflow API</option>
<option value="definitions/ig-core-api.yaml">IG Core API</option> <option value="definitions/ig-core-api.yaml">IG Core API</option>
</select> </select>
</div> </div>