update JS petstore samples

This commit is contained in:
wing328
2017-10-20 22:16:41 +08:00
parent 649811d542
commit 36f14ab757
16 changed files with 419 additions and 0 deletions

View File

@@ -391,6 +391,50 @@ export default class FakeApi {
);
}
/**
* Callback function to receive the result of the testInlineAdditionalProperties operation.
* @callback module:api/FakeApi~testInlineAdditionalPropertiesCallback
* @param {String} error Error message, if any.
* @param data This operation does not return a value.
* @param {String} response The complete HTTP response.
*/
/**
* test inline additionalProperties
*
* @param {Object} param request body
* @param {module:api/FakeApi~testInlineAdditionalPropertiesCallback} callback The callback function, accepting three arguments: error, data, response
*/
testInlineAdditionalProperties(param, callback) {
let postBody = param;
// verify the required parameter 'param' is set
if (param === undefined || param === null) {
throw new Error("Missing the required parameter 'param' when calling testInlineAdditionalProperties");
}
let pathParams = {
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = ['application/json'];
let accepts = [];
let returnType = null;
return this.apiClient.callApi(
'/fake/inline-additionalProperties', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, callback
);
}
/**
* Callback function to receive the result of the testJsonFormData operation.
* @callback module:api/FakeApi~testJsonFormDataCallback