mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-06 18:45:23 +00:00
Merge pull request #3364 from michaelkourlas/michaelkourlas-patch-1
Correct reference to ApiClient default instance
This commit is contained in:
commit
77097ec76a
@ -58,7 +58,7 @@ Please follow the [installation](#installation) instruction and execute the foll
|
||||
```javascript
|
||||
var {{{moduleName}}} = require('{{{projectName}}}');
|
||||
{{#apiInfo}}{{#apis}}{{#-first}}{{#operations}}{{#operation}}{{#-first}}{{#hasAuthMethods}}
|
||||
var defaultClient = {{{moduleName}}}.ApiClient.default;
|
||||
var defaultClient = {{{moduleName}}}.ApiClient.instance;
|
||||
{{#authMethods}}{{#isBasic}}
|
||||
// Configure HTTP basic authorization: {{{name}}}
|
||||
var {{{name}}} = defaultClient.authentications['{{{name}}}'];
|
||||
|
Loading…
Reference in New Issue
Block a user