diff --git a/modules/swagger-codegen/src/main/resources/swagger-static/assets/js/main.js b/modules/swagger-codegen/src/main/resources/swagger-static/assets/js/main.js
index 660d628567c..ee0d2f92470 100644
--- a/modules/swagger-codegen/src/main/resources/swagger-static/assets/js/main.js
+++ b/modules/swagger-codegen/src/main/resources/swagger-static/assets/js/main.js
@@ -1,13 +1,8 @@
-function main() {}
-
window.onhashchange = function() {
choose(window.location.href.toString());
}
-var url = 'http://motyar.blogspot.com/search?q={term}', selectionImage;
-
-function showModel(e, model) {
-}
+var selectionImage;
function choose(url) {
var f = url.split("/").slice(-1)[0].split("?")[0];
@@ -20,8 +15,8 @@ function choose(url) {
// rebind the models
$(".model a").on("click", function(e){
e.preventDefault();
- var model = $(this).parent().attr("id")
- var parentOffset = $(this).parent().offset();
+ var model = $(this).parent().attr("data-model")
+ var parentOffset = $(this).parent().offset();
var encodedWord = encodeURI(model);
if(!selectionImage) {
@@ -33,7 +28,7 @@ function choose(url) {
$('div.model-container').append(selectionImage);
}
- selectionImage.load("/models/" + encodedWord + ".html")
+ selectionImage.load("models/" + encodedWord + ".html")
selectionImage.attr('href',url.replace('{term}',encodeURI(model))).css({
left: e.pageX + 20,
top: e.pageY - 10,
diff --git a/modules/swagger-codegen/src/main/resources/swagger-static/operation.mustache b/modules/swagger-codegen/src/main/resources/swagger-static/operation.mustache
index a1789a60dad..c2c70aa906d 100644
--- a/modules/swagger-codegen/src/main/resources/swagger-static/operation.mustache
+++ b/modules/swagger-codegen/src/main/resources/swagger-static/operation.mustache
@@ -13,7 +13,7 @@
HTTP Method
{{httpMethod}}
Response Type
-
+
Parameters
{{#allParams}}
diff --git a/samples/dynamic-html/docs/assets/js/main.js b/samples/dynamic-html/docs/assets/js/main.js
index 660d628567c..ee0d2f92470 100644
--- a/samples/dynamic-html/docs/assets/js/main.js
+++ b/samples/dynamic-html/docs/assets/js/main.js
@@ -1,13 +1,8 @@
-function main() {}
-
window.onhashchange = function() {
choose(window.location.href.toString());
}
-var url = 'http://motyar.blogspot.com/search?q={term}', selectionImage;
-
-function showModel(e, model) {
-}
+var selectionImage;
function choose(url) {
var f = url.split("/").slice(-1)[0].split("?")[0];
@@ -20,8 +15,8 @@ function choose(url) {
// rebind the models
$(".model a").on("click", function(e){
e.preventDefault();
- var model = $(this).parent().attr("id")
- var parentOffset = $(this).parent().offset();
+ var model = $(this).parent().attr("data-model")
+ var parentOffset = $(this).parent().offset();
var encodedWord = encodeURI(model);
if(!selectionImage) {
@@ -33,7 +28,7 @@ function choose(url) {
$('div.model-container').append(selectionImage);
}
- selectionImage.load("/models/" + encodedWord + ".html")
+ selectionImage.load("models/" + encodedWord + ".html")
selectionImage.attr('href',url.replace('{term}',encodeURI(model))).css({
left: e.pageX + 20,
top: e.pageY - 10,
diff --git a/samples/dynamic-html/docs/operations/PetApi.html b/samples/dynamic-html/docs/operations/PetApi.html
index b01e28de36d..0fd5a9ae3c6 100644
--- a/samples/dynamic-html/docs/operations/PetApi.html
+++ b/samples/dynamic-html/docs/operations/PetApi.html
@@ -13,7 +13,7 @@
HTTP Method
PUT
Response Type
-
+
Parameters
@@ -40,7 +40,7 @@
HTTP Method
POST
Response Type
-
+
Parameters
@@ -67,7 +67,7 @@
HTTP Method
GET
Response Type
-
+
Parameters
@@ -94,7 +94,7 @@
HTTP Method
GET
Response Type
-
+
Parameters
@@ -121,7 +121,7 @@
HTTP Method
GET
Response Type
-
+
Parameters
@@ -148,7 +148,7 @@
HTTP Method
POST
Response Type
-
+
Parameters
@@ -199,7 +199,7 @@
HTTP Method
DELETE
Response Type
-
+
Parameters
@@ -238,7 +238,7 @@
HTTP Method
POST
Response Type
-
+
Parameters
diff --git a/samples/dynamic-html/docs/operations/StoreApi.html b/samples/dynamic-html/docs/operations/StoreApi.html
index c2f8b942dbe..65990b21423 100644
--- a/samples/dynamic-html/docs/operations/StoreApi.html
+++ b/samples/dynamic-html/docs/operations/StoreApi.html
@@ -13,7 +13,7 @@
HTTP Method
GET
Response Type
-
+
Parameters
@@ -28,7 +28,7 @@
HTTP Method
POST
Response Type
-
+
Parameters
@@ -55,7 +55,7 @@
HTTP Method
GET
Response Type
-
+
Parameters
@@ -82,7 +82,7 @@
HTTP Method
DELETE
Response Type
-
+
Parameters
diff --git a/samples/dynamic-html/docs/operations/UserApi.html b/samples/dynamic-html/docs/operations/UserApi.html
index 20ee0e086ea..f3af4dcaa76 100644
--- a/samples/dynamic-html/docs/operations/UserApi.html
+++ b/samples/dynamic-html/docs/operations/UserApi.html
@@ -13,7 +13,7 @@
HTTP Method
POST
Response Type
-
+
Parameters
@@ -40,7 +40,7 @@
HTTP Method
POST
Response Type
-
+
Parameters
@@ -67,7 +67,7 @@
HTTP Method
POST
Response Type
-
+
Parameters
@@ -94,7 +94,7 @@
HTTP Method
GET
Response Type
-
+
Parameters
@@ -133,7 +133,7 @@
HTTP Method
GET
Response Type
-
+
Parameters
@@ -148,7 +148,7 @@
HTTP Method
GET
Response Type
-
+
Parameters
@@ -175,7 +175,7 @@
HTTP Method
PUT
Response Type
-
+
Parameters
@@ -214,7 +214,7 @@
HTTP Method
DELETE
Response Type
-
+
Parameters