|
|
|
@ -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;});
|
|
|
|
|
})();
|
|
|
|
|
|
|
|
|
@ -1590,7 +1620,7 @@ templates['status_code'] = template(function (Handlebars,depth0,helpers,partials
|
|
|
|
|
_ref2 = this.model.parameters;
|
|
|
|
|
for (_k = 0, _len2 = _ref2.length; _k < _len2; _k++) {
|
|
|
|
|
param = _ref2[_k];
|
|
|
|
|
if ((param.paramType === 'body' || 'form') && param.name !== 'file' && (map[param.name] != null)) {
|
|
|
|
|
if ((param.paramType === 'body' || 'form') && param.name !== 'file' && param.name !== 'File' && (map[param.name] != null)) {
|
|
|
|
|
bodyParam.append(param.name, map[param.name]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -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);
|
|
|
|
|