mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-03-10 08:31:23 +00:00
[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:
@@ -366,12 +366,19 @@ export class {{classname}} {
|
||||
|
||||
{{/isResponseFile}}
|
||||
let localVarPath = `{{{path}}}`;
|
||||
return this.httpClient.{{httpMethod}}{{^isResponseFile}}<{{#returnType}}{{{returnType}}}{{#isResponseTypeFile}}|undefined{{/isResponseTypeFile}}{{/returnType}}{{^returnType}}any{{/returnType}}>{{/isResponseFile}}(`${this.configuration.basePath}${localVarPath}`,{{#isBodyAllowed}}
|
||||
{{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}{{#hasFormParams}}localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams{{/hasFormParams}}{{^hasFormParams}}null{{/hasFormParams}}{{/bodyParam}},{{/isBodyAllowed}}
|
||||
return this.httpClient.request{{^isResponseFile}}<{{#returnType}}{{{returnType}}}{{#isResponseTypeFile}}|undefined{{/isResponseTypeFile}}{{/returnType}}{{^returnType}}any{{/returnType}}>{{/isResponseFile}}('{{httpMethod}}', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
{{#httpContextInOptions}}
|
||||
context: localVarHttpContext,
|
||||
{{/httpContextInOptions}}
|
||||
{{#bodyParam}}
|
||||
body: {{paramName}},
|
||||
{{/bodyParam}}
|
||||
{{^bodyParam}}
|
||||
{{#hasFormParams}}
|
||||
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
{{/hasFormParams}}
|
||||
{{/bodyParam}}
|
||||
{{#hasQueryParamsOrAuth}}
|
||||
params: localVarQueryParameters,
|
||||
{{/hasQueryParamsOrAuth}}
|
||||
|
||||
@@ -142,10 +142,10 @@ export class UserService {
|
||||
}
|
||||
|
||||
let localVarPath = `/user`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
@@ -206,10 +206,10 @@ export class UserService {
|
||||
}
|
||||
|
||||
let localVarPath = `/user`;
|
||||
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
|
||||
@@ -185,10 +185,10 @@ export class ProjectService {
|
||||
}
|
||||
|
||||
let localVarPath = `/projects`;
|
||||
return this.httpClient.post<ProjectEntity>(`${this.configuration.basePath}${localVarPath}`,
|
||||
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
return this.httpClient.request<ProjectEntity>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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"})}`;
|
||||
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
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"})}`;
|
||||
return this.httpClient.get<ProjectEntity>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<ProjectEntity>('get', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -401,7 +401,7 @@ export class ProjectService {
|
||||
}
|
||||
|
||||
let localVarPath = `/projects`;
|
||||
return this.httpClient.get<ProjectList>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<ProjectList>('get', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
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"})}`;
|
||||
return this.httpClient.put<ProjectEntity>(`${this.configuration.basePath}${localVarPath}`,
|
||||
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
return this.httpClient.request<ProjectEntity>('put', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
|
||||
@@ -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})}`;
|
||||
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
null,
|
||||
return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
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})}`;
|
||||
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
null,
|
||||
return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
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})}`;
|
||||
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
null,
|
||||
return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
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"})}`;
|
||||
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
null,
|
||||
return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
|
||||
@@ -168,10 +168,10 @@ export class PetService {
|
||||
}
|
||||
|
||||
let localVarPath = `/pet`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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"})}`;
|
||||
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -310,7 +310,7 @@ export class PetService {
|
||||
}
|
||||
|
||||
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,
|
||||
params: localVarQueryParameters,
|
||||
@@ -384,7 +384,7 @@ export class PetService {
|
||||
}
|
||||
|
||||
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,
|
||||
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"})}`;
|
||||
return this.httpClient.get<Pet>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<Pet>('get', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -526,10 +526,10 @@ export class PetService {
|
||||
}
|
||||
|
||||
let localVarPath = `/pet`;
|
||||
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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"})}`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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`;
|
||||
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}${localVarPath}`,
|
||||
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
return this.httpClient.request<ApiResponse>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
|
||||
@@ -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})}`;
|
||||
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -199,7 +199,7 @@ export class StoreService {
|
||||
}
|
||||
|
||||
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,
|
||||
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"})}`;
|
||||
return this.httpClient.get<Order>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<Order>('get', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -326,10 +326,10 @@ export class StoreService {
|
||||
}
|
||||
|
||||
let localVarPath = `/store/order`;
|
||||
return this.httpClient.post<Order>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<Order>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
|
||||
@@ -145,10 +145,10 @@ export class UserService {
|
||||
}
|
||||
|
||||
let localVarPath = `/user`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
@@ -211,10 +211,10 @@ export class UserService {
|
||||
}
|
||||
|
||||
let localVarPath = `/user/createWithArray`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
@@ -277,10 +277,10 @@ export class UserService {
|
||||
}
|
||||
|
||||
let localVarPath = `/user/createWithList`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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})}`;
|
||||
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
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})}`;
|
||||
return this.httpClient.get<User>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<User>('get', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -468,7 +468,7 @@ export class UserService {
|
||||
}
|
||||
|
||||
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,
|
||||
params: localVarQueryParameters,
|
||||
@@ -522,7 +522,7 @@ export class UserService {
|
||||
}
|
||||
|
||||
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,
|
||||
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})}`;
|
||||
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
|
||||
@@ -132,7 +132,7 @@ export class DefaultService {
|
||||
}
|
||||
|
||||
let localVarPath = `/`;
|
||||
return this.httpClient.get<Fruit>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<Fruit>('get', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -194,10 +194,10 @@ export class DefaultService {
|
||||
}
|
||||
|
||||
let localVarPath = `/`;
|
||||
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
|
||||
@@ -168,10 +168,10 @@ export class PetService {
|
||||
}
|
||||
|
||||
let localVarPath = `/pet`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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"})}`;
|
||||
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -310,7 +310,7 @@ export class PetService {
|
||||
}
|
||||
|
||||
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,
|
||||
params: localVarQueryParameters,
|
||||
@@ -385,7 +385,7 @@ export class PetService {
|
||||
}
|
||||
|
||||
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,
|
||||
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"})}`;
|
||||
return this.httpClient.get<Pet>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<Pet>('get', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -527,10 +527,10 @@ export class PetService {
|
||||
}
|
||||
|
||||
let localVarPath = `/pet`;
|
||||
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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"})}`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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`;
|
||||
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}${localVarPath}`,
|
||||
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
return this.httpClient.request<ApiResponse>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
|
||||
@@ -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})}`;
|
||||
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -199,7 +199,7 @@ export class StoreService {
|
||||
}
|
||||
|
||||
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,
|
||||
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"})}`;
|
||||
return this.httpClient.get<Order>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<Order>('get', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -326,10 +326,10 @@ export class StoreService {
|
||||
}
|
||||
|
||||
let localVarPath = `/store/order`;
|
||||
return this.httpClient.post<Order>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<Order>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
|
||||
@@ -145,10 +145,10 @@ export class UserService {
|
||||
}
|
||||
|
||||
let localVarPath = `/user`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
@@ -211,10 +211,10 @@ export class UserService {
|
||||
}
|
||||
|
||||
let localVarPath = `/user/createWithArray`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
@@ -277,10 +277,10 @@ export class UserService {
|
||||
}
|
||||
|
||||
let localVarPath = `/user/createWithList`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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})}`;
|
||||
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
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})}`;
|
||||
return this.httpClient.get<User>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<User>('get', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -468,7 +468,7 @@ export class UserService {
|
||||
}
|
||||
|
||||
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,
|
||||
params: localVarQueryParameters,
|
||||
@@ -522,7 +522,7 @@ export class UserService {
|
||||
}
|
||||
|
||||
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,
|
||||
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})}`;
|
||||
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
|
||||
@@ -168,10 +168,10 @@ export class PetService {
|
||||
}
|
||||
|
||||
let localVarPath = `/pet`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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"})}`;
|
||||
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -310,7 +310,7 @@ export class PetService {
|
||||
}
|
||||
|
||||
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,
|
||||
params: localVarQueryParameters,
|
||||
@@ -385,7 +385,7 @@ export class PetService {
|
||||
}
|
||||
|
||||
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,
|
||||
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"})}`;
|
||||
return this.httpClient.get<Pet>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<Pet>('get', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -527,10 +527,10 @@ export class PetService {
|
||||
}
|
||||
|
||||
let localVarPath = `/pet`;
|
||||
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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"})}`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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`;
|
||||
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}${localVarPath}`,
|
||||
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
return this.httpClient.request<ApiResponse>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
|
||||
@@ -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})}`;
|
||||
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -199,7 +199,7 @@ export class StoreService {
|
||||
}
|
||||
|
||||
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,
|
||||
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"})}`;
|
||||
return this.httpClient.get<Order>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<Order>('get', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -326,10 +326,10 @@ export class StoreService {
|
||||
}
|
||||
|
||||
let localVarPath = `/store/order`;
|
||||
return this.httpClient.post<Order>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<Order>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
|
||||
@@ -145,10 +145,10 @@ export class UserService {
|
||||
}
|
||||
|
||||
let localVarPath = `/user`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
@@ -211,10 +211,10 @@ export class UserService {
|
||||
}
|
||||
|
||||
let localVarPath = `/user/createWithArray`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
@@ -277,10 +277,10 @@ export class UserService {
|
||||
}
|
||||
|
||||
let localVarPath = `/user/createWithList`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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})}`;
|
||||
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
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})}`;
|
||||
return this.httpClient.get<User>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<User>('get', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -468,7 +468,7 @@ export class UserService {
|
||||
}
|
||||
|
||||
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,
|
||||
params: localVarQueryParameters,
|
||||
@@ -522,7 +522,7 @@ export class UserService {
|
||||
}
|
||||
|
||||
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,
|
||||
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})}`;
|
||||
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
|
||||
@@ -168,10 +168,10 @@ export class PetService {
|
||||
}
|
||||
|
||||
let localVarPath = `/pet`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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"})}`;
|
||||
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -310,7 +310,7 @@ export class PetService {
|
||||
}
|
||||
|
||||
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,
|
||||
params: localVarQueryParameters,
|
||||
@@ -385,7 +385,7 @@ export class PetService {
|
||||
}
|
||||
|
||||
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,
|
||||
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"})}`;
|
||||
return this.httpClient.get<Pet>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<Pet>('get', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -527,10 +527,10 @@ export class PetService {
|
||||
}
|
||||
|
||||
let localVarPath = `/pet`;
|
||||
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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"})}`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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`;
|
||||
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}${localVarPath}`,
|
||||
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
return this.httpClient.request<ApiResponse>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
|
||||
@@ -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})}`;
|
||||
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -199,7 +199,7 @@ export class StoreService {
|
||||
}
|
||||
|
||||
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,
|
||||
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"})}`;
|
||||
return this.httpClient.get<Order>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<Order>('get', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -326,10 +326,10 @@ export class StoreService {
|
||||
}
|
||||
|
||||
let localVarPath = `/store/order`;
|
||||
return this.httpClient.post<Order>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<Order>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
|
||||
@@ -145,10 +145,10 @@ export class UserService {
|
||||
}
|
||||
|
||||
let localVarPath = `/user`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
@@ -211,10 +211,10 @@ export class UserService {
|
||||
}
|
||||
|
||||
let localVarPath = `/user/createWithArray`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
@@ -277,10 +277,10 @@ export class UserService {
|
||||
}
|
||||
|
||||
let localVarPath = `/user/createWithList`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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})}`;
|
||||
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
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})}`;
|
||||
return this.httpClient.get<User>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<User>('get', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -468,7 +468,7 @@ export class UserService {
|
||||
}
|
||||
|
||||
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,
|
||||
params: localVarQueryParameters,
|
||||
@@ -522,7 +522,7 @@ export class UserService {
|
||||
}
|
||||
|
||||
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,
|
||||
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})}`;
|
||||
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
|
||||
@@ -132,7 +132,7 @@ export class DefaultService {
|
||||
}
|
||||
|
||||
let localVarPath = `/`;
|
||||
return this.httpClient.get<Fruit>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<Fruit>('get', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -194,10 +194,10 @@ export class DefaultService {
|
||||
}
|
||||
|
||||
let localVarPath = `/`;
|
||||
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
|
||||
@@ -168,10 +168,10 @@ export class PetService {
|
||||
}
|
||||
|
||||
let localVarPath = `/pet`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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"})}`;
|
||||
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -310,7 +310,7 @@ export class PetService {
|
||||
}
|
||||
|
||||
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,
|
||||
params: localVarQueryParameters,
|
||||
@@ -385,7 +385,7 @@ export class PetService {
|
||||
}
|
||||
|
||||
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,
|
||||
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"})}`;
|
||||
return this.httpClient.get<Pet>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<Pet>('get', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -527,10 +527,10 @@ export class PetService {
|
||||
}
|
||||
|
||||
let localVarPath = `/pet`;
|
||||
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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"})}`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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`;
|
||||
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}${localVarPath}`,
|
||||
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
return this.httpClient.request<ApiResponse>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
|
||||
@@ -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})}`;
|
||||
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -199,7 +199,7 @@ export class StoreService {
|
||||
}
|
||||
|
||||
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,
|
||||
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"})}`;
|
||||
return this.httpClient.get<Order>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<Order>('get', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -326,10 +326,10 @@ export class StoreService {
|
||||
}
|
||||
|
||||
let localVarPath = `/store/order`;
|
||||
return this.httpClient.post<Order>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<Order>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
|
||||
@@ -145,10 +145,10 @@ export class UserService {
|
||||
}
|
||||
|
||||
let localVarPath = `/user`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
@@ -211,10 +211,10 @@ export class UserService {
|
||||
}
|
||||
|
||||
let localVarPath = `/user/createWithArray`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
@@ -277,10 +277,10 @@ export class UserService {
|
||||
}
|
||||
|
||||
let localVarPath = `/user/createWithList`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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})}`;
|
||||
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
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})}`;
|
||||
return this.httpClient.get<User>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<User>('get', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -468,7 +468,7 @@ export class UserService {
|
||||
}
|
||||
|
||||
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,
|
||||
params: localVarQueryParameters,
|
||||
@@ -522,7 +522,7 @@ export class UserService {
|
||||
}
|
||||
|
||||
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,
|
||||
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})}`;
|
||||
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
body,
|
||||
return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: body,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
|
||||
@@ -171,10 +171,10 @@ export class PetService {
|
||||
}
|
||||
|
||||
let localVarPath = `/pet`;
|
||||
return this.httpClient.post<Pet>(`${this.configuration.basePath}${localVarPath}`,
|
||||
pet,
|
||||
return this.httpClient.request<Pet>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: pet,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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"})}`;
|
||||
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -314,7 +314,7 @@ export class PetService {
|
||||
}
|
||||
|
||||
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,
|
||||
params: localVarQueryParameters,
|
||||
@@ -389,7 +389,7 @@ export class PetService {
|
||||
}
|
||||
|
||||
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,
|
||||
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"})}`;
|
||||
return this.httpClient.get<Pet>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<Pet>('get', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -534,10 +534,10 @@ export class PetService {
|
||||
}
|
||||
|
||||
let localVarPath = `/pet`;
|
||||
return this.httpClient.put<Pet>(`${this.configuration.basePath}${localVarPath}`,
|
||||
pet,
|
||||
return this.httpClient.request<Pet>('put', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: pet,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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"})}`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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`;
|
||||
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}${localVarPath}`,
|
||||
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
return this.httpClient.request<ApiResponse>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
|
||||
@@ -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})}`;
|
||||
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -199,7 +199,7 @@ export class StoreService {
|
||||
}
|
||||
|
||||
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,
|
||||
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"})}`;
|
||||
return this.httpClient.get<Order>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<Order>('get', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -328,10 +328,10 @@ export class StoreService {
|
||||
}
|
||||
|
||||
let localVarPath = `/store/order`;
|
||||
return this.httpClient.post<Order>(`${this.configuration.basePath}${localVarPath}`,
|
||||
order,
|
||||
return this.httpClient.request<Order>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: order,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
|
||||
@@ -153,10 +153,10 @@ export class UserService {
|
||||
}
|
||||
|
||||
let localVarPath = `/user`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
user,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: user,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
@@ -228,10 +228,10 @@ export class UserService {
|
||||
}
|
||||
|
||||
let localVarPath = `/user/createWithArray`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
user,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: user,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
@@ -303,10 +303,10 @@ export class UserService {
|
||||
}
|
||||
|
||||
let localVarPath = `/user/createWithList`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
user,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: user,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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})}`;
|
||||
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
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})}`;
|
||||
return this.httpClient.get<User>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<User>('get', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -503,7 +503,7 @@ export class UserService {
|
||||
}
|
||||
|
||||
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,
|
||||
params: localVarQueryParameters,
|
||||
@@ -565,7 +565,7 @@ export class UserService {
|
||||
}
|
||||
|
||||
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,
|
||||
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})}`;
|
||||
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
user,
|
||||
return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: user,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
|
||||
@@ -171,10 +171,10 @@ export class PetService {
|
||||
}
|
||||
|
||||
let localVarPath = `/pet`;
|
||||
return this.httpClient.post<Pet>(`${this.configuration.basePath}${localVarPath}`,
|
||||
pet,
|
||||
return this.httpClient.request<Pet>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: pet,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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"})}`;
|
||||
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -314,7 +314,7 @@ export class PetService {
|
||||
}
|
||||
|
||||
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,
|
||||
params: localVarQueryParameters,
|
||||
@@ -389,7 +389,7 @@ export class PetService {
|
||||
}
|
||||
|
||||
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,
|
||||
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"})}`;
|
||||
return this.httpClient.get<Pet>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<Pet>('get', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -534,10 +534,10 @@ export class PetService {
|
||||
}
|
||||
|
||||
let localVarPath = `/pet`;
|
||||
return this.httpClient.put<Pet>(`${this.configuration.basePath}${localVarPath}`,
|
||||
pet,
|
||||
return this.httpClient.request<Pet>('put', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: pet,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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"})}`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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`;
|
||||
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}${localVarPath}`,
|
||||
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
return this.httpClient.request<ApiResponse>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
|
||||
@@ -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})}`;
|
||||
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -199,7 +199,7 @@ export class StoreService {
|
||||
}
|
||||
|
||||
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,
|
||||
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"})}`;
|
||||
return this.httpClient.get<Order>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<Order>('get', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -328,10 +328,10 @@ export class StoreService {
|
||||
}
|
||||
|
||||
let localVarPath = `/store/order`;
|
||||
return this.httpClient.post<Order>(`${this.configuration.basePath}${localVarPath}`,
|
||||
order,
|
||||
return this.httpClient.request<Order>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: order,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
|
||||
@@ -153,10 +153,10 @@ export class UserService {
|
||||
}
|
||||
|
||||
let localVarPath = `/user`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
user,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: user,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
@@ -228,10 +228,10 @@ export class UserService {
|
||||
}
|
||||
|
||||
let localVarPath = `/user/createWithArray`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
user,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: user,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
@@ -303,10 +303,10 @@ export class UserService {
|
||||
}
|
||||
|
||||
let localVarPath = `/user/createWithList`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
user,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: user,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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})}`;
|
||||
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
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})}`;
|
||||
return this.httpClient.get<User>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<User>('get', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -503,7 +503,7 @@ export class UserService {
|
||||
}
|
||||
|
||||
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,
|
||||
params: localVarQueryParameters,
|
||||
@@ -565,7 +565,7 @@ export class UserService {
|
||||
}
|
||||
|
||||
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,
|
||||
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})}`;
|
||||
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
user,
|
||||
return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: user,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
|
||||
@@ -171,10 +171,10 @@ export class PetService {
|
||||
}
|
||||
|
||||
let localVarPath = `/pet`;
|
||||
return this.httpClient.post<Pet>(`${this.configuration.basePath}${localVarPath}`,
|
||||
pet,
|
||||
return this.httpClient.request<Pet>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: pet,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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"})}`;
|
||||
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -314,7 +314,7 @@ export class PetService {
|
||||
}
|
||||
|
||||
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,
|
||||
params: localVarQueryParameters,
|
||||
@@ -389,7 +389,7 @@ export class PetService {
|
||||
}
|
||||
|
||||
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,
|
||||
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"})}`;
|
||||
return this.httpClient.get<Pet>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<Pet>('get', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -534,10 +534,10 @@ export class PetService {
|
||||
}
|
||||
|
||||
let localVarPath = `/pet`;
|
||||
return this.httpClient.put<Pet>(`${this.configuration.basePath}${localVarPath}`,
|
||||
pet,
|
||||
return this.httpClient.request<Pet>('put', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: pet,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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"})}`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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`;
|
||||
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}${localVarPath}`,
|
||||
localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
return this.httpClient.request<ApiResponse>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
|
||||
@@ -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})}`;
|
||||
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -199,7 +199,7 @@ export class StoreService {
|
||||
}
|
||||
|
||||
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,
|
||||
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"})}`;
|
||||
return this.httpClient.get<Order>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<Order>('get', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -328,10 +328,10 @@ export class StoreService {
|
||||
}
|
||||
|
||||
let localVarPath = `/store/order`;
|
||||
return this.httpClient.post<Order>(`${this.configuration.basePath}${localVarPath}`,
|
||||
order,
|
||||
return this.httpClient.request<Order>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: order,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
|
||||
@@ -153,10 +153,10 @@ export class UserService {
|
||||
}
|
||||
|
||||
let localVarPath = `/user`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
user,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: user,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
@@ -228,10 +228,10 @@ export class UserService {
|
||||
}
|
||||
|
||||
let localVarPath = `/user/createWithArray`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
user,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: user,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
@@ -303,10 +303,10 @@ export class UserService {
|
||||
}
|
||||
|
||||
let localVarPath = `/user/createWithList`;
|
||||
return this.httpClient.post<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
user,
|
||||
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: user,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
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})}`;
|
||||
return this.httpClient.delete<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
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})}`;
|
||||
return this.httpClient.get<User>(`${this.configuration.basePath}${localVarPath}`,
|
||||
return this.httpClient.request<User>('get', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
@@ -503,7 +503,7 @@ export class UserService {
|
||||
}
|
||||
|
||||
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,
|
||||
params: localVarQueryParameters,
|
||||
@@ -565,7 +565,7 @@ export class UserService {
|
||||
}
|
||||
|
||||
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,
|
||||
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})}`;
|
||||
return this.httpClient.put<any>(`${this.configuration.basePath}${localVarPath}`,
|
||||
user,
|
||||
return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: user,
|
||||
responseType: <any>responseType_,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: localVarHeaders,
|
||||
|
||||
Reference in New Issue
Block a user