[typescript-angular] Support body for DELETE requests (#13457)

* [typescript-angular] Update api template to use HttpClient#request instead of its http-method-specific wrappers

* update expected output for integration tests

* regenerate samples
This commit is contained in:
Alexey Makhrov 2022-09-18 23:46:22 -07:00 committed by GitHub
parent c4a3866e75
commit f773ac7bfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
30 changed files with 262 additions and 259 deletions

View File

@ -366,12 +366,19 @@ export class {{classname}} {
{{/isResponseFile}} {{/isResponseFile}}
let localVarPath = `{{{path}}}`; let localVarPath = `{{{path}}}`;
return this.httpClient.{{httpMethod}}{{^isResponseFile}}<{{#returnType}}{{{returnType}}}{{#isResponseTypeFile}}|undefined{{/isResponseTypeFile}}{{/returnType}}{{^returnType}}any{{/returnType}}>{{/isResponseFile}}(`${this.configuration.basePath}${localVarPath}`,{{#isBodyAllowed}} return this.httpClient.request{{^isResponseFile}}<{{#returnType}}{{{returnType}}}{{#isResponseTypeFile}}|undefined{{/isResponseTypeFile}}{{/returnType}}{{^returnType}}any{{/returnType}}>{{/isResponseFile}}('{{httpMethod}}', `${this.configuration.basePath}${localVarPath}`,
{{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}{{#hasFormParams}}localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams{{/hasFormParams}}{{^hasFormParams}}null{{/hasFormParams}}{{/bodyParam}},{{/isBodyAllowed}}
{ {
{{#httpContextInOptions}} {{#httpContextInOptions}}
context: localVarHttpContext, context: localVarHttpContext,
{{/httpContextInOptions}} {{/httpContextInOptions}}
{{#bodyParam}}
body: {{paramName}},
{{/bodyParam}}
{{^bodyParam}}
{{#hasFormParams}}
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
{{/hasFormParams}}
{{/bodyParam}}
{{#hasQueryParamsOrAuth}} {{#hasQueryParamsOrAuth}}
params: localVarQueryParameters, params: localVarQueryParameters,
{{/hasQueryParamsOrAuth}} {{/hasQueryParamsOrAuth}}

View File

@ -142,10 +142,10 @@ export class UserService {
} }
let localVarPath = `/user`; let localVarPath = `/user`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -206,10 +206,10 @@ export class UserService {
} }
let localVarPath = `/user`; let localVarPath = `/user`;
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,

View File

@ -185,10 +185,10 @@ export class ProjectService {
} }
let localVarPath = `/projects`; let localVarPath = `/projects`;
return this.httpClient.post<ProjectEntity>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<ProjectEntity>('post', `${this.configuration.basePath}${localVarPath}`,
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -245,7 +245,7 @@ export class ProjectService {
} }
let localVarPath = `/projects/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; let localVarPath = `/projects/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -304,7 +304,7 @@ export class ProjectService {
} }
let localVarPath = `/projects/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; let localVarPath = `/projects/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
return this.httpClient.get<ProjectEntity>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<ProjectEntity>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -401,7 +401,7 @@ export class ProjectService {
} }
let localVarPath = `/projects`; let localVarPath = `/projects`;
return this.httpClient.get<ProjectList>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<ProjectList>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
params: localVarQueryParameters, params: localVarQueryParameters,
@ -503,10 +503,10 @@ export class ProjectService {
} }
let localVarPath = `/projects/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; let localVarPath = `/projects/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
return this.httpClient.put<ProjectEntity>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<ProjectEntity>('put', `${this.configuration.basePath}${localVarPath}`,
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,

View File

@ -132,8 +132,7 @@ export class MatrixParamsService {
} }
let localVarPath = `/complexMatrixParamExploded${this.configuration.encodeParam({name: "matrixParamExploded", value: matrixParamExploded, in: "path", style: "matrix", explode: true, dataType: "ComplexParams", dataFormat: undefined})}`; let localVarPath = `/complexMatrixParamExploded${this.configuration.encodeParam({name: "matrixParamExploded", value: matrixParamExploded, in: "path", style: "matrix", explode: true, dataType: "ComplexParams", dataFormat: undefined})}`;
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
null,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -186,8 +185,7 @@ export class MatrixParamsService {
} }
let localVarPath = `/complexMatrixParamFlat${this.configuration.encodeParam({name: "matrixParamFlat", value: matrixParamFlat, in: "path", style: "matrix", explode: false, dataType: "ComplexParams", dataFormat: undefined})}`; let localVarPath = `/complexMatrixParamFlat${this.configuration.encodeParam({name: "matrixParamFlat", value: matrixParamFlat, in: "path", style: "matrix", explode: false, dataType: "ComplexParams", dataFormat: undefined})}`;
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
null,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -240,8 +238,7 @@ export class MatrixParamsService {
} }
let localVarPath = `/plainMatrixParamFlat${this.configuration.encodeParam({name: "plainParamFlat", value: plainParamFlat, in: "path", style: "matrix", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/plainMatrixParamFlat${this.configuration.encodeParam({name: "plainParamFlat", value: plainParamFlat, in: "path", style: "matrix", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
null,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -294,8 +291,7 @@ export class MatrixParamsService {
} }
let localVarPath = `/date-timeMatrixParamFlat${this.configuration.encodeParam({name: "dateTimeParamFlat", value: dateTimeParamFlat, in: "path", style: "matrix", explode: false, dataType: "string", dataFormat: "date-time"})}`; let localVarPath = `/date-timeMatrixParamFlat${this.configuration.encodeParam({name: "dateTimeParamFlat", value: dateTimeParamFlat, in: "path", style: "matrix", explode: false, dataType: "string", dataFormat: "date-time"})}`;
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
null,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,

View File

@ -168,10 +168,10 @@ export class PetService {
} }
let localVarPath = `/pet`; let localVarPath = `/pet`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -237,7 +237,7 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -310,7 +310,7 @@ export class PetService {
} }
let localVarPath = `/pet/findByStatus`; let localVarPath = `/pet/findByStatus`;
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Array<Pet>>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
params: localVarQueryParameters, params: localVarQueryParameters,
@ -384,7 +384,7 @@ export class PetService {
} }
let localVarPath = `/pet/findByTags`; let localVarPath = `/pet/findByTags`;
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Array<Pet>>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
params: localVarQueryParameters, params: localVarQueryParameters,
@ -452,7 +452,7 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.get<Pet>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Pet>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -526,10 +526,10 @@ export class PetService {
} }
let localVarPath = `/pet`; let localVarPath = `/pet`;
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -615,10 +615,10 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -708,10 +708,10 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/uploadImage`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/uploadImage`;
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<ApiResponse>('post', `${this.configuration.basePath}${localVarPath}`,
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,

View File

@ -137,7 +137,7 @@ export class StoreService {
} }
let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -199,7 +199,7 @@ export class StoreService {
} }
let localVarPath = `/store/inventory`; let localVarPath = `/store/inventory`;
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<{ [key: string]: number; }>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -259,7 +259,7 @@ export class StoreService {
} }
let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.get<Order>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Order>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -326,10 +326,10 @@ export class StoreService {
} }
let localVarPath = `/store/order`; let localVarPath = `/store/order`;
return this.httpClient.post<Order>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Order>('post', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,

View File

@ -145,10 +145,10 @@ export class UserService {
} }
let localVarPath = `/user`; let localVarPath = `/user`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -211,10 +211,10 @@ export class UserService {
} }
let localVarPath = `/user/createWithArray`; let localVarPath = `/user/createWithArray`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -277,10 +277,10 @@ export class UserService {
} }
let localVarPath = `/user/createWithList`; let localVarPath = `/user/createWithList`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -336,7 +336,7 @@ export class UserService {
} }
let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -395,7 +395,7 @@ export class UserService {
} }
let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.get<User>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<User>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -468,7 +468,7 @@ export class UserService {
} }
let localVarPath = `/user/login`; let localVarPath = `/user/login`;
return this.httpClient.get<string>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<string>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
params: localVarQueryParameters, params: localVarQueryParameters,
@ -522,7 +522,7 @@ export class UserService {
} }
let localVarPath = `/user/logout`; let localVarPath = `/user/logout`;
return this.httpClient.get<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -592,10 +592,10 @@ export class UserService {
} }
let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,

View File

@ -132,7 +132,7 @@ export class DefaultService {
} }
let localVarPath = `/`; let localVarPath = `/`;
return this.httpClient.get<Fruit>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Fruit>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -194,10 +194,10 @@ export class DefaultService {
} }
let localVarPath = `/`; let localVarPath = `/`;
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,

View File

@ -168,10 +168,10 @@ export class PetService {
} }
let localVarPath = `/pet`; let localVarPath = `/pet`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -237,7 +237,7 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -310,7 +310,7 @@ export class PetService {
} }
let localVarPath = `/pet/findByStatus`; let localVarPath = `/pet/findByStatus`;
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Array<Pet>>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
params: localVarQueryParameters, params: localVarQueryParameters,
@ -385,7 +385,7 @@ export class PetService {
} }
let localVarPath = `/pet/findByTags`; let localVarPath = `/pet/findByTags`;
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Array<Pet>>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
params: localVarQueryParameters, params: localVarQueryParameters,
@ -453,7 +453,7 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.get<Pet>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Pet>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -527,10 +527,10 @@ export class PetService {
} }
let localVarPath = `/pet`; let localVarPath = `/pet`;
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -616,10 +616,10 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -709,10 +709,10 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/uploadImage`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/uploadImage`;
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<ApiResponse>('post', `${this.configuration.basePath}${localVarPath}`,
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,

View File

@ -137,7 +137,7 @@ export class StoreService {
} }
let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -199,7 +199,7 @@ export class StoreService {
} }
let localVarPath = `/store/inventory`; let localVarPath = `/store/inventory`;
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<{ [key: string]: number; }>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -259,7 +259,7 @@ export class StoreService {
} }
let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.get<Order>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Order>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -326,10 +326,10 @@ export class StoreService {
} }
let localVarPath = `/store/order`; let localVarPath = `/store/order`;
return this.httpClient.post<Order>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Order>('post', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,

View File

@ -145,10 +145,10 @@ export class UserService {
} }
let localVarPath = `/user`; let localVarPath = `/user`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -211,10 +211,10 @@ export class UserService {
} }
let localVarPath = `/user/createWithArray`; let localVarPath = `/user/createWithArray`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -277,10 +277,10 @@ export class UserService {
} }
let localVarPath = `/user/createWithList`; let localVarPath = `/user/createWithList`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -336,7 +336,7 @@ export class UserService {
} }
let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -395,7 +395,7 @@ export class UserService {
} }
let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.get<User>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<User>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -468,7 +468,7 @@ export class UserService {
} }
let localVarPath = `/user/login`; let localVarPath = `/user/login`;
return this.httpClient.get<string>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<string>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
params: localVarQueryParameters, params: localVarQueryParameters,
@ -522,7 +522,7 @@ export class UserService {
} }
let localVarPath = `/user/logout`; let localVarPath = `/user/logout`;
return this.httpClient.get<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -592,10 +592,10 @@ export class UserService {
} }
let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,

View File

@ -168,10 +168,10 @@ export class PetService {
} }
let localVarPath = `/pet`; let localVarPath = `/pet`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -237,7 +237,7 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -310,7 +310,7 @@ export class PetService {
} }
let localVarPath = `/pet/findByStatus`; let localVarPath = `/pet/findByStatus`;
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Array<Pet>>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
params: localVarQueryParameters, params: localVarQueryParameters,
@ -385,7 +385,7 @@ export class PetService {
} }
let localVarPath = `/pet/findByTags`; let localVarPath = `/pet/findByTags`;
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Array<Pet>>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
params: localVarQueryParameters, params: localVarQueryParameters,
@ -453,7 +453,7 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.get<Pet>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Pet>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -527,10 +527,10 @@ export class PetService {
} }
let localVarPath = `/pet`; let localVarPath = `/pet`;
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -616,10 +616,10 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -709,10 +709,10 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/uploadImage`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/uploadImage`;
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<ApiResponse>('post', `${this.configuration.basePath}${localVarPath}`,
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,

View File

@ -137,7 +137,7 @@ export class StoreService {
} }
let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -199,7 +199,7 @@ export class StoreService {
} }
let localVarPath = `/store/inventory`; let localVarPath = `/store/inventory`;
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<{ [key: string]: number; }>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -259,7 +259,7 @@ export class StoreService {
} }
let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.get<Order>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Order>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -326,10 +326,10 @@ export class StoreService {
} }
let localVarPath = `/store/order`; let localVarPath = `/store/order`;
return this.httpClient.post<Order>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Order>('post', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,

View File

@ -145,10 +145,10 @@ export class UserService {
} }
let localVarPath = `/user`; let localVarPath = `/user`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -211,10 +211,10 @@ export class UserService {
} }
let localVarPath = `/user/createWithArray`; let localVarPath = `/user/createWithArray`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -277,10 +277,10 @@ export class UserService {
} }
let localVarPath = `/user/createWithList`; let localVarPath = `/user/createWithList`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -336,7 +336,7 @@ export class UserService {
} }
let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -395,7 +395,7 @@ export class UserService {
} }
let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.get<User>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<User>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -468,7 +468,7 @@ export class UserService {
} }
let localVarPath = `/user/login`; let localVarPath = `/user/login`;
return this.httpClient.get<string>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<string>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
params: localVarQueryParameters, params: localVarQueryParameters,
@ -522,7 +522,7 @@ export class UserService {
} }
let localVarPath = `/user/logout`; let localVarPath = `/user/logout`;
return this.httpClient.get<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -592,10 +592,10 @@ export class UserService {
} }
let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,

View File

@ -168,10 +168,10 @@ export class PetService {
} }
let localVarPath = `/pet`; let localVarPath = `/pet`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -237,7 +237,7 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -310,7 +310,7 @@ export class PetService {
} }
let localVarPath = `/pet/findByStatus`; let localVarPath = `/pet/findByStatus`;
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Array<Pet>>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
params: localVarQueryParameters, params: localVarQueryParameters,
@ -385,7 +385,7 @@ export class PetService {
} }
let localVarPath = `/pet/findByTags`; let localVarPath = `/pet/findByTags`;
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Array<Pet>>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
params: localVarQueryParameters, params: localVarQueryParameters,
@ -453,7 +453,7 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.get<Pet>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Pet>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -527,10 +527,10 @@ export class PetService {
} }
let localVarPath = `/pet`; let localVarPath = `/pet`;
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -616,10 +616,10 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -709,10 +709,10 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/uploadImage`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/uploadImage`;
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<ApiResponse>('post', `${this.configuration.basePath}${localVarPath}`,
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,

View File

@ -137,7 +137,7 @@ export class StoreService {
} }
let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -199,7 +199,7 @@ export class StoreService {
} }
let localVarPath = `/store/inventory`; let localVarPath = `/store/inventory`;
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<{ [key: string]: number; }>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -259,7 +259,7 @@ export class StoreService {
} }
let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.get<Order>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Order>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -326,10 +326,10 @@ export class StoreService {
} }
let localVarPath = `/store/order`; let localVarPath = `/store/order`;
return this.httpClient.post<Order>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Order>('post', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,

View File

@ -145,10 +145,10 @@ export class UserService {
} }
let localVarPath = `/user`; let localVarPath = `/user`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -211,10 +211,10 @@ export class UserService {
} }
let localVarPath = `/user/createWithArray`; let localVarPath = `/user/createWithArray`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -277,10 +277,10 @@ export class UserService {
} }
let localVarPath = `/user/createWithList`; let localVarPath = `/user/createWithList`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -336,7 +336,7 @@ export class UserService {
} }
let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -395,7 +395,7 @@ export class UserService {
} }
let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.get<User>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<User>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -468,7 +468,7 @@ export class UserService {
} }
let localVarPath = `/user/login`; let localVarPath = `/user/login`;
return this.httpClient.get<string>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<string>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
params: localVarQueryParameters, params: localVarQueryParameters,
@ -522,7 +522,7 @@ export class UserService {
} }
let localVarPath = `/user/logout`; let localVarPath = `/user/logout`;
return this.httpClient.get<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -592,10 +592,10 @@ export class UserService {
} }
let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,

View File

@ -132,7 +132,7 @@ export class DefaultService {
} }
let localVarPath = `/`; let localVarPath = `/`;
return this.httpClient.get<Fruit>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Fruit>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -194,10 +194,10 @@ export class DefaultService {
} }
let localVarPath = `/`; let localVarPath = `/`;
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,

View File

@ -168,10 +168,10 @@ export class PetService {
} }
let localVarPath = `/pet`; let localVarPath = `/pet`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -237,7 +237,7 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -310,7 +310,7 @@ export class PetService {
} }
let localVarPath = `/pet/findByStatus`; let localVarPath = `/pet/findByStatus`;
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Array<Pet>>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
params: localVarQueryParameters, params: localVarQueryParameters,
@ -385,7 +385,7 @@ export class PetService {
} }
let localVarPath = `/pet/findByTags`; let localVarPath = `/pet/findByTags`;
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Array<Pet>>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
params: localVarQueryParameters, params: localVarQueryParameters,
@ -453,7 +453,7 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.get<Pet>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Pet>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -527,10 +527,10 @@ export class PetService {
} }
let localVarPath = `/pet`; let localVarPath = `/pet`;
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -616,10 +616,10 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -709,10 +709,10 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/uploadImage`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/uploadImage`;
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<ApiResponse>('post', `${this.configuration.basePath}${localVarPath}`,
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,

View File

@ -137,7 +137,7 @@ export class StoreService {
} }
let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -199,7 +199,7 @@ export class StoreService {
} }
let localVarPath = `/store/inventory`; let localVarPath = `/store/inventory`;
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<{ [key: string]: number; }>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -259,7 +259,7 @@ export class StoreService {
} }
let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.get<Order>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Order>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -326,10 +326,10 @@ export class StoreService {
} }
let localVarPath = `/store/order`; let localVarPath = `/store/order`;
return this.httpClient.post<Order>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Order>('post', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,

View File

@ -145,10 +145,10 @@ export class UserService {
} }
let localVarPath = `/user`; let localVarPath = `/user`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -211,10 +211,10 @@ export class UserService {
} }
let localVarPath = `/user/createWithArray`; let localVarPath = `/user/createWithArray`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -277,10 +277,10 @@ export class UserService {
} }
let localVarPath = `/user/createWithList`; let localVarPath = `/user/createWithList`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -336,7 +336,7 @@ export class UserService {
} }
let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -395,7 +395,7 @@ export class UserService {
} }
let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.get<User>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<User>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -468,7 +468,7 @@ export class UserService {
} }
let localVarPath = `/user/login`; let localVarPath = `/user/login`;
return this.httpClient.get<string>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<string>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
params: localVarQueryParameters, params: localVarQueryParameters,
@ -522,7 +522,7 @@ export class UserService {
} }
let localVarPath = `/user/logout`; let localVarPath = `/user/logout`;
return this.httpClient.get<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -592,10 +592,10 @@ export class UserService {
} }
let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
body,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: body,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,

View File

@ -171,10 +171,10 @@ export class PetService {
} }
let localVarPath = `/pet`; let localVarPath = `/pet`;
return this.httpClient.post<Pet>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Pet>('post', `${this.configuration.basePath}${localVarPath}`,
pet,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: pet,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -241,7 +241,7 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -314,7 +314,7 @@ export class PetService {
} }
let localVarPath = `/pet/findByStatus`; let localVarPath = `/pet/findByStatus`;
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Array<Pet>>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
params: localVarQueryParameters, params: localVarQueryParameters,
@ -389,7 +389,7 @@ export class PetService {
} }
let localVarPath = `/pet/findByTags`; let localVarPath = `/pet/findByTags`;
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Array<Pet>>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
params: localVarQueryParameters, params: localVarQueryParameters,
@ -457,7 +457,7 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.get<Pet>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Pet>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -534,10 +534,10 @@ export class PetService {
} }
let localVarPath = `/pet`; let localVarPath = `/pet`;
return this.httpClient.put<Pet>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Pet>('put', `${this.configuration.basePath}${localVarPath}`,
pet,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: pet,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -624,10 +624,10 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -718,10 +718,10 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/uploadImage`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/uploadImage`;
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<ApiResponse>('post', `${this.configuration.basePath}${localVarPath}`,
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,

View File

@ -137,7 +137,7 @@ export class StoreService {
} }
let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -199,7 +199,7 @@ export class StoreService {
} }
let localVarPath = `/store/inventory`; let localVarPath = `/store/inventory`;
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<{ [key: string]: number; }>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -259,7 +259,7 @@ export class StoreService {
} }
let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.get<Order>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Order>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -328,10 +328,10 @@ export class StoreService {
} }
let localVarPath = `/store/order`; let localVarPath = `/store/order`;
return this.httpClient.post<Order>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Order>('post', `${this.configuration.basePath}${localVarPath}`,
order,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: order,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,

View File

@ -153,10 +153,10 @@ export class UserService {
} }
let localVarPath = `/user`; let localVarPath = `/user`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
user,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: user,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -228,10 +228,10 @@ export class UserService {
} }
let localVarPath = `/user/createWithArray`; let localVarPath = `/user/createWithArray`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
user,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: user,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -303,10 +303,10 @@ export class UserService {
} }
let localVarPath = `/user/createWithList`; let localVarPath = `/user/createWithList`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
user,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: user,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -369,7 +369,7 @@ export class UserService {
} }
let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -429,7 +429,7 @@ export class UserService {
} }
let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.get<User>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<User>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -503,7 +503,7 @@ export class UserService {
} }
let localVarPath = `/user/login`; let localVarPath = `/user/login`;
return this.httpClient.get<string>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<string>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
params: localVarQueryParameters, params: localVarQueryParameters,
@ -565,7 +565,7 @@ export class UserService {
} }
let localVarPath = `/user/logout`; let localVarPath = `/user/logout`;
return this.httpClient.get<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -643,10 +643,10 @@ export class UserService {
} }
let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
user,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: user,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,

View File

@ -171,10 +171,10 @@ export class PetService {
} }
let localVarPath = `/pet`; let localVarPath = `/pet`;
return this.httpClient.post<Pet>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Pet>('post', `${this.configuration.basePath}${localVarPath}`,
pet,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: pet,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -241,7 +241,7 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -314,7 +314,7 @@ export class PetService {
} }
let localVarPath = `/pet/findByStatus`; let localVarPath = `/pet/findByStatus`;
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Array<Pet>>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
params: localVarQueryParameters, params: localVarQueryParameters,
@ -389,7 +389,7 @@ export class PetService {
} }
let localVarPath = `/pet/findByTags`; let localVarPath = `/pet/findByTags`;
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Array<Pet>>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
params: localVarQueryParameters, params: localVarQueryParameters,
@ -457,7 +457,7 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.get<Pet>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Pet>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -534,10 +534,10 @@ export class PetService {
} }
let localVarPath = `/pet`; let localVarPath = `/pet`;
return this.httpClient.put<Pet>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Pet>('put', `${this.configuration.basePath}${localVarPath}`,
pet,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: pet,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -624,10 +624,10 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -718,10 +718,10 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/uploadImage`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/uploadImage`;
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<ApiResponse>('post', `${this.configuration.basePath}${localVarPath}`,
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,

View File

@ -137,7 +137,7 @@ export class StoreService {
} }
let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -199,7 +199,7 @@ export class StoreService {
} }
let localVarPath = `/store/inventory`; let localVarPath = `/store/inventory`;
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<{ [key: string]: number; }>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -259,7 +259,7 @@ export class StoreService {
} }
let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.get<Order>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Order>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -328,10 +328,10 @@ export class StoreService {
} }
let localVarPath = `/store/order`; let localVarPath = `/store/order`;
return this.httpClient.post<Order>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Order>('post', `${this.configuration.basePath}${localVarPath}`,
order,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: order,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,

View File

@ -153,10 +153,10 @@ export class UserService {
} }
let localVarPath = `/user`; let localVarPath = `/user`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
user,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: user,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -228,10 +228,10 @@ export class UserService {
} }
let localVarPath = `/user/createWithArray`; let localVarPath = `/user/createWithArray`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
user,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: user,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -303,10 +303,10 @@ export class UserService {
} }
let localVarPath = `/user/createWithList`; let localVarPath = `/user/createWithList`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
user,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: user,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -369,7 +369,7 @@ export class UserService {
} }
let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -429,7 +429,7 @@ export class UserService {
} }
let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.get<User>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<User>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -503,7 +503,7 @@ export class UserService {
} }
let localVarPath = `/user/login`; let localVarPath = `/user/login`;
return this.httpClient.get<string>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<string>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
params: localVarQueryParameters, params: localVarQueryParameters,
@ -565,7 +565,7 @@ export class UserService {
} }
let localVarPath = `/user/logout`; let localVarPath = `/user/logout`;
return this.httpClient.get<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -643,10 +643,10 @@ export class UserService {
} }
let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
user,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: user,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,

View File

@ -171,10 +171,10 @@ export class PetService {
} }
let localVarPath = `/pet`; let localVarPath = `/pet`;
return this.httpClient.post<Pet>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Pet>('post', `${this.configuration.basePath}${localVarPath}`,
pet,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: pet,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -241,7 +241,7 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -314,7 +314,7 @@ export class PetService {
} }
let localVarPath = `/pet/findByStatus`; let localVarPath = `/pet/findByStatus`;
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Array<Pet>>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
params: localVarQueryParameters, params: localVarQueryParameters,
@ -389,7 +389,7 @@ export class PetService {
} }
let localVarPath = `/pet/findByTags`; let localVarPath = `/pet/findByTags`;
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Array<Pet>>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
params: localVarQueryParameters, params: localVarQueryParameters,
@ -457,7 +457,7 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.get<Pet>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Pet>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -534,10 +534,10 @@ export class PetService {
} }
let localVarPath = `/pet`; let localVarPath = `/pet`;
return this.httpClient.put<Pet>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Pet>('put', `${this.configuration.basePath}${localVarPath}`,
pet,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: pet,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -624,10 +624,10 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -718,10 +718,10 @@ export class PetService {
} }
let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/uploadImage`; let localVarPath = `/pet/${this.configuration.encodeParam({name: "petId", value: petId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/uploadImage`;
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<ApiResponse>('post', `${this.configuration.basePath}${localVarPath}`,
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,

View File

@ -137,7 +137,7 @@ export class StoreService {
} }
let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -199,7 +199,7 @@ export class StoreService {
} }
let localVarPath = `/store/inventory`; let localVarPath = `/store/inventory`;
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<{ [key: string]: number; }>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -259,7 +259,7 @@ export class StoreService {
} }
let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; let localVarPath = `/store/order/${this.configuration.encodeParam({name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
return this.httpClient.get<Order>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Order>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -328,10 +328,10 @@ export class StoreService {
} }
let localVarPath = `/store/order`; let localVarPath = `/store/order`;
return this.httpClient.post<Order>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<Order>('post', `${this.configuration.basePath}${localVarPath}`,
order,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: order,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,

View File

@ -153,10 +153,10 @@ export class UserService {
} }
let localVarPath = `/user`; let localVarPath = `/user`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
user,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: user,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -228,10 +228,10 @@ export class UserService {
} }
let localVarPath = `/user/createWithArray`; let localVarPath = `/user/createWithArray`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
user,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: user,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -303,10 +303,10 @@ export class UserService {
} }
let localVarPath = `/user/createWithList`; let localVarPath = `/user/createWithList`;
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
user,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: user,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,
@ -369,7 +369,7 @@ export class UserService {
} }
let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -429,7 +429,7 @@ export class UserService {
} }
let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.get<User>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<User>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -503,7 +503,7 @@ export class UserService {
} }
let localVarPath = `/user/login`; let localVarPath = `/user/login`;
return this.httpClient.get<string>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<string>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
params: localVarQueryParameters, params: localVarQueryParameters,
@ -565,7 +565,7 @@ export class UserService {
} }
let localVarPath = `/user/logout`; let localVarPath = `/user/logout`;
return this.httpClient.get<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('get', `${this.configuration.basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
@ -643,10 +643,10 @@ export class UserService {
} }
let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; let localVarPath = `/user/${this.configuration.encodeParam({name: "username", value: username, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`, return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
user,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: user,
responseType: <any>responseType_, responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials, withCredentials: this.configuration.withCredentials,
headers: localVarHeaders, headers: localVarHeaders,