From e884b2e700c8a1dda9797c503566b37a982d8574 Mon Sep 17 00:00:00 2001 From: xming Date: Sat, 21 May 2016 14:51:44 +0800 Subject: [PATCH] add basePathWithoutHost --- .../src/main/java/io/swagger/codegen/DefaultGenerator.java | 1 + .../swagger-codegen/src/main/resources/htmlDocs/index.mustache | 1 + 2 files changed, 2 insertions(+) diff --git a/modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultGenerator.java b/modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultGenerator.java index b648ce3f870..769a6185336 100644 --- a/modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultGenerator.java +++ b/modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultGenerator.java @@ -486,6 +486,7 @@ public class DefaultGenerator extends AbstractGenerator implements Generator { } bundle.put("swagger", this.swagger); bundle.put("basePath", basePath); + bundle.put("basePathWithoutHost",basePathWithoutHost); bundle.put("scheme", scheme); bundle.put("contextPath", contextPath); bundle.put("apiInfo", apis); diff --git a/modules/swagger-codegen/src/main/resources/htmlDocs/index.mustache b/modules/swagger-codegen/src/main/resources/htmlDocs/index.mustache index e7a8d9bf322..2f2da2299a9 100644 --- a/modules/swagger-codegen/src/main/resources/htmlDocs/index.mustache +++ b/modules/swagger-codegen/src/main/resources/htmlDocs/index.mustache @@ -14,6 +14,7 @@ {{#infoUrl}}
More information: {{{infoUrl}}}
{{/infoUrl}} {{#infoEmail}}
Contact Info: {{{infoEmail}}}
{{/infoEmail}} {{#version}}
Version: {{{version}}}
{{/version}} + {{#basePathWithoutHost}}
BasePath:{{basePathWithoutHost}}
{{/basePathWithoutHost}}
{{{licenseInfo}}}
{{{licenseUrl}}}

Access