|
|
@@ -300,7 +300,7 @@ function program3(depth0,data) { |
|
|
|
function program5(depth0,data) { |
|
|
|
|
|
|
|
|
|
|
|
return "\n <h4>Parameters</h4>\n <table class='fullwidth'>\n <thead>\n <tr>\n <th style=\"width: 100px; max-width: 100px\" >Parameter</th>\n <th style=\"width: 310px; max-width: 310px\">Value</th>\n <th style=\"width: 200px; max-width: 200px\">Description</th>\n <th style=\"width: 320px; max-width: 330px\">Data Type</th>\n </tr>\n </thead>\n <tbody class=\"operation-params\">\n\n </tbody>\n </table>\n ";} |
|
|
|
return "\n <h4>Parameters</h4>\n <table class='fullwidth'>\n <thead>\n <tr>\n <th style=\"width: 100px; max-width: 100px\">Parameter</th>\n <th style=\"width: 310px; max-width: 310px\">Value</th>\n <th style=\"width: 200px; max-width: 200px\">Description</th>\n <th style=\"width: 100px; max-width: 100px\">Parameter Type</th>\n <th style=\"width: 220px; max-width: 230px\">Data Type</th>\n </tr>\n </thead>\n <tbody class=\"operation-params\">\n\n </tbody>\n </table>\n ";} |
|
|
|
|
|
|
|
function program7(depth0,data) { |
|
|
|
|
|
|
@@ -629,6 +629,12 @@ function program12(depth0,data) { |
|
|
|
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } |
|
|
|
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "description", { hash: {} }); } |
|
|
|
if(stack1 || stack1 === 0) { buffer += stack1; } |
|
|
|
buffer += "</td>\n<td>"; |
|
|
|
foundHelper = helpers.paramType; |
|
|
|
stack1 = foundHelper || depth0.paramType; |
|
|
|
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } |
|
|
|
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "paramType", { hash: {} }); } |
|
|
|
if(stack1 || stack1 === 0) { buffer += stack1; } |
|
|
|
buffer += "</td>\n<td>\n <span class=\"model-signature\"></span>\n</td>\n\n"; |
|
|
|
return buffer;}); |
|
|
|
})(); |
|
|
@@ -753,6 +759,12 @@ function program11(depth0,data) { |
|
|
|
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } |
|
|
|
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "description", { hash: {} }); } |
|
|
|
if(stack1 || stack1 === 0) { buffer += stack1; } |
|
|
|
buffer += "</td>\n<td>"; |
|
|
|
foundHelper = helpers.paramType; |
|
|
|
stack1 = foundHelper || depth0.paramType; |
|
|
|
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } |
|
|
|
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "paramType", { hash: {} }); } |
|
|
|
if(stack1 || stack1 === 0) { buffer += stack1; } |
|
|
|
buffer += "</td>\n<td><span class=\"model-signature\"></span></td>\n"; |
|
|
|
return buffer;}); |
|
|
|
})(); |
|
|
@@ -831,6 +843,12 @@ function program6(depth0,data) { |
|
|
|
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } |
|
|
|
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "description", { hash: {} }); } |
|
|
|
if(stack1 || stack1 === 0) { buffer += stack1; } |
|
|
|
buffer += "</td>\n<td>"; |
|
|
|
foundHelper = helpers.paramType; |
|
|
|
stack1 = foundHelper || depth0.paramType; |
|
|
|
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } |
|
|
|
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "paramType", { hash: {} }); } |
|
|
|
if(stack1 || stack1 === 0) { buffer += stack1; } |
|
|
|
buffer += "</td>\n<td><span class=\"model-signature\"></span></td>\n"; |
|
|
|
return buffer;}); |
|
|
|
})(); |
|
|
@@ -909,6 +927,12 @@ function program6(depth0,data) { |
|
|
|
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } |
|
|
|
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "description", { hash: {} }); } |
|
|
|
if(stack1 || stack1 === 0) { buffer += stack1; } |
|
|
|
buffer += "</td>\n<td>"; |
|
|
|
foundHelper = helpers.paramType; |
|
|
|
stack1 = foundHelper || depth0.paramType; |
|
|
|
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } |
|
|
|
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "paramType", { hash: {} }); } |
|
|
|
if(stack1 || stack1 === 0) { buffer += stack1; } |
|
|
|
buffer += "</td>\n<td><span class=\"model-signature\"></span></td>\n"; |
|
|
|
return buffer;}); |
|
|
|
})(); |
|
|
@@ -1076,7 +1100,13 @@ function program15(depth0,data) { |
|
|
|
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } |
|
|
|
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "description", { hash: {} }); } |
|
|
|
if(stack1 || stack1 === 0) { buffer += stack1; } |
|
|
|
buffer += "</strong>\n</td>\n<td><span class=\"model-signature\"></span></td>\n"; |
|
|
|
buffer += "</strong>\n</td>\n<td>"; |
|
|
|
foundHelper = helpers.paramType; |
|
|
|
stack1 = foundHelper || depth0.paramType; |
|
|
|
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } |
|
|
|
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "paramType", { hash: {} }); } |
|
|
|
if(stack1 || stack1 === 0) { buffer += stack1; } |
|
|
|
buffer += "</td>\n<td><span class=\"model-signature\"></span></td>\n"; |
|
|
|
return buffer;}); |
|
|
|
})(); |
|
|
|
|
|
|
@@ -1646,7 +1676,7 @@ templates['status_code'] = template(function (Handlebars,depth0,helpers,partials |
|
|
|
obj.contentType = paramContentTypeField; |
|
|
|
} |
|
|
|
log('content type = ' + obj.contentType); |
|
|
|
if (!obj.data || (obj.type === 'GET' || obj.type === 'DELETE')) { |
|
|
|
if (!(obj.data || (obj.type === 'GET' || obj.type === 'DELETE')) && obj.contentType === !"application/x-www-form-urlencoded") { |
|
|
|
obj.contentType = false; |
|
|
|
} |
|
|
|
log('content type is now = ' + obj.contentType); |
|
|
|