forked from loafle/openapi-generator-original
Update Typescript node samples
This commit is contained in:
parent
fde5c60cb0
commit
09ccf12a3b
@ -121,8 +121,8 @@ export class UserApi {
|
||||
private basePath = '/v2';
|
||||
public authentications = {
|
||||
'default': <Authentication>new VoidAuth(),
|
||||
'api_key': <Authentication>new ApiKeyAuth('header', 'api_key'),
|
||||
'petstore_auth': <Authentication>new OAuth(),
|
||||
'api_key': new ApiKeyAuth('header', 'api_key'),
|
||||
'petstore_auth': new OAuth(),
|
||||
}
|
||||
|
||||
constructor(url: string, basePath?: string);
|
||||
@ -138,7 +138,6 @@ export class UserApi {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
set apiKey(key: string) {
|
||||
this.authentications.api_key.apiKey = key;
|
||||
}
|
||||
@ -532,8 +531,8 @@ export class PetApi {
|
||||
private basePath = '/v2';
|
||||
public authentications = {
|
||||
'default': <Authentication>new VoidAuth(),
|
||||
'api_key': <Authentication>new ApiKeyAuth('header', 'api_key'),
|
||||
'petstore_auth': <Authentication>new OAuth(),
|
||||
'api_key': new ApiKeyAuth('header', 'api_key'),
|
||||
'petstore_auth': new OAuth(),
|
||||
}
|
||||
|
||||
constructor(url: string, basePath?: string);
|
||||
@ -549,7 +548,6 @@ export class PetApi {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
set apiKey(key: string) {
|
||||
this.authentications.api_key.apiKey = key;
|
||||
}
|
||||
@ -985,8 +983,8 @@ export class StoreApi {
|
||||
private basePath = '/v2';
|
||||
public authentications = {
|
||||
'default': <Authentication>new VoidAuth(),
|
||||
'api_key': <Authentication>new ApiKeyAuth('header', 'api_key'),
|
||||
'petstore_auth': <Authentication>new OAuth(),
|
||||
'api_key': new ApiKeyAuth('header', 'api_key'),
|
||||
'petstore_auth': new OAuth(),
|
||||
}
|
||||
|
||||
constructor(url: string, basePath?: string);
|
||||
@ -1002,7 +1000,6 @@ export class StoreApi {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
set apiKey(key: string) {
|
||||
this.authentications.api_key.apiKey = key;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user