using the latest swagger.js
This commit is contained in:
@@ -257,7 +257,7 @@
|
|||||||
_results = [];
|
_results = [];
|
||||||
for (_i = 0, _len = ops.length; _i < _len; _i++) {
|
for (_i = 0, _len = ops.length; _i < _len; _i++) {
|
||||||
o = ops[_i];
|
o = ops[_i];
|
||||||
op = new SwaggerOperation(o.nickname, resource_path, o.httpMethod, o.parameters, o.summary, o.notes, o.responseClass, o.errorResponses, this);
|
op = new SwaggerOperation(o.nickname, resource_path, o.httpMethod, o.parameters, o.summary, o.notes, o.responseClass, o.errorResponses, this, o.supportedContentTypes);
|
||||||
this.operations[op.nickname] = op;
|
this.operations[op.nickname] = op;
|
||||||
_results.push(this.operationsArray.push(op));
|
_results.push(this.operationsArray.push(op));
|
||||||
}
|
}
|
||||||
@@ -415,7 +415,7 @@
|
|||||||
|
|
||||||
SwaggerOperation = (function() {
|
SwaggerOperation = (function() {
|
||||||
|
|
||||||
function SwaggerOperation(nickname, path, httpMethod, parameters, summary, notes, responseClass, errorResponses, resource) {
|
function SwaggerOperation(nickname, path, httpMethod, parameters, summary, notes, responseClass, errorResponses, resource, supportedContentTypes) {
|
||||||
var parameter, v, _i, _j, _len, _len1, _ref, _ref1, _ref2,
|
var parameter, v, _i, _j, _len, _len1, _ref, _ref1, _ref2,
|
||||||
_this = this;
|
_this = this;
|
||||||
this.nickname = nickname;
|
this.nickname = nickname;
|
||||||
@@ -427,6 +427,7 @@
|
|||||||
this.responseClass = responseClass;
|
this.responseClass = responseClass;
|
||||||
this.errorResponses = errorResponses;
|
this.errorResponses = errorResponses;
|
||||||
this.resource = resource;
|
this.resource = resource;
|
||||||
|
this.supportedContentTypes = supportedContentTypes;
|
||||||
this["do"] = __bind(this["do"], this);
|
this["do"] = __bind(this["do"], this);
|
||||||
|
|
||||||
if (this.nickname == null) {
|
if (this.nickname == null) {
|
||||||
@@ -447,6 +448,7 @@
|
|||||||
}
|
}
|
||||||
if (this.responseClass != null) {
|
if (this.responseClass != null) {
|
||||||
this.responseClassSignature = this.getSignature(this.responseClass, this.resource.models);
|
this.responseClassSignature = this.getSignature(this.responseClass, this.resource.models);
|
||||||
|
this.responseSampleJSON = this.getSampleJSON(this.responseClass, this.resource.models);
|
||||||
}
|
}
|
||||||
this.errorResponses = this.errorResponses || [];
|
this.errorResponses = this.errorResponses || [];
|
||||||
_ref1 = this.parameters;
|
_ref1 = this.parameters;
|
||||||
|
|||||||
Reference in New Issue
Block a user