mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-11 01:33:24 +01:00
Fix Swagger console base URL location issue.
This commit is contained in:
parent
fc213d5745
commit
2baf8c92fe
@ -8,7 +8,7 @@ BASE_DIR=`pwd`
|
|||||||
TARGET_DIR=$BASE_DIR/target
|
TARGET_DIR=$BASE_DIR/target
|
||||||
JETTY_DIR=$TARGET_DIR/wisemapping-$WISE_VERSION
|
JETTY_DIR=$TARGET_DIR/wisemapping-$WISE_VERSION
|
||||||
WISE_WEBAPP_DIR=$JETTY_DIR/webapps/wisemapping
|
WISE_WEBAPP_DIR=$JETTY_DIR/webapps/wisemapping
|
||||||
JETTY_VERSION=8.1.14.v20131031
|
JETTY_VERSION=8.1.16.v20140903
|
||||||
JETTY_DIST_DIR=jetty-distribution-${JETTY_VERSION}
|
JETTY_DIST_DIR=jetty-distribution-${JETTY_VERSION}
|
||||||
JETTY_ZIP=${JETTY_DIST_DIR}.zip
|
JETTY_ZIP=${JETTY_DIST_DIR}.zip
|
||||||
|
|
||||||
|
@ -143,7 +143,7 @@ security.openid.enabled=false
|
|||||||
|
|
||||||
# REST Documentation
|
# REST Documentation
|
||||||
#
|
#
|
||||||
# This properties are used for REST API Documentation( http://localhost:8080/doc/rest/index.html)
|
# This properties are used for REST API Documentation( http://localhost:8080/wisemapping/doc/rest/index.html)
|
||||||
# Change the URL for proper documentation console setup.
|
# Change the URL for proper documentation console setup.
|
||||||
documentation.services.basePath=http://localhost:8080/wisemapping/service
|
documentation.services.basePath=http://localhost:8080/wisemapping/service
|
||||||
documentation.services.version=3.0.1
|
documentation.services.version=3.0.1
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
supportedSubmitMethods: ['get', 'post', 'put', 'delete'],
|
supportedSubmitMethods: ['get', 'post', 'put', 'delete'],
|
||||||
onComplete: function(swaggerApi, swaggerUi){
|
onComplete: function(swaggerApi, swaggerUi){
|
||||||
if(console) {
|
if(console) {
|
||||||
console.log("Loaded SwaggerUI")
|
console.log("Loaded SwaggerUI")
|
||||||
}
|
}
|
||||||
$('pre code').each(function(i, e) {hljs.highlightBlock(e)});
|
$('pre code').each(function(i, e) {hljs.highlightBlock(e)});
|
||||||
},
|
},
|
||||||
|
@ -1281,10 +1281,8 @@ helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
|
|||||||
};
|
};
|
||||||
|
|
||||||
SwaggerUi.prototype.buildUrl = function(base, url) {
|
SwaggerUi.prototype.buildUrl = function(base, url) {
|
||||||
var parts;
|
|
||||||
console.log("base is " + base);
|
console.log("base is " + base);
|
||||||
parts = base.split("/");
|
base = base.substring(0,base.indexOf("/doc/"));
|
||||||
base = parts[0] + "//" + parts[2];
|
|
||||||
if (url.indexOf("/") === 0) {
|
if (url.indexOf("/") === 0) {
|
||||||
return base + url;
|
return base + url;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user