mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-03 14:10:56 +00:00
[javascript] Fix documentation for ES6 ApiClient (#5783)
This commit is contained in:
parent
f770477d48
commit
151d1b2783
@ -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}}}'];
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
2.2.3-SNAPSHOT
|
@ -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
|
||||||
|
@ -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.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@ -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.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@ -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.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user