[javascript] Fix documentation for ES6 ApiClient (#5783)

This commit is contained in:
Kevin Murphy 2017-06-06 01:03:36 -07:00 committed by wing328
parent f770477d48
commit 151d1b2783
6 changed files with 16 additions and 1 deletions

View File

@ -22,7 +22,7 @@ Method | HTTP request | Description
```javascript ```javascript
import {{{moduleName}}} from '{{{projectName}}}'; import {{{moduleName}}} from '{{{projectName}}}';
{{#hasAuthMethods}} {{#hasAuthMethods}}
let defaultClient = {{{moduleName}}}.ApiClient.default; let defaultClient = {{{moduleName}}}.ApiClient.instance;
{{#authMethods}}{{#isBasic}} {{#authMethods}}{{#isBasic}}
// Configure HTTP basic authorization: {{{name}}} // Configure HTTP basic authorization: {{{name}}}
let {{{name}}} = defaultClient.authentications['{{{name}}}']; let {{{name}}} = defaultClient.authentications['{{{name}}}'];

View File

@ -0,0 +1 @@
2.2.3-SNAPSHOT

View File

@ -7,6 +7,9 @@
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.2.3-SNAPSHOT
*
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */
@ -425,6 +428,8 @@
if (returnType === 'Blob') { if (returnType === 'Blob') {
request.responseType('blob'); request.responseType('blob');
} else if (returnType === 'String') {
request.responseType('string');
} }
// Attach previously saved cookies, if enabled // Attach previously saved cookies, if enabled

View File

@ -7,6 +7,9 @@
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.2.3-SNAPSHOT
*
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */

View File

@ -7,6 +7,9 @@
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.2.3-SNAPSHOT
*
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */

View File

@ -7,6 +7,9 @@
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.2.3-SNAPSHOT
*
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */