From 8349911b59de60473ced881ca0fd1938256f926d Mon Sep 17 00:00:00 2001 From: Dario Simone Date: Wed, 30 Sep 2020 20:46:42 +0200 Subject: [PATCH 1/4] allow a body on all request methods `httpClient.delete` does not allow for a body to be passed, use `httpClient.request` instead. --- .../main/resources/typescript-angular/api.service.mustache | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/typescript-angular/api.service.mustache b/modules/openapi-generator/src/main/resources/typescript-angular/api.service.mustache index 9e070e3616bb..122764e5f058 100644 --- a/modules/openapi-generator/src/main/resources/typescript-angular/api.service.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-angular/api.service.mustache @@ -334,9 +334,10 @@ export class {{classname}} { } {{/isResponseFile}} - return this.httpClient.{{httpMethod}}{{^isResponseFile}}<{{#returnType}}{{{returnType}}}{{#isResponseTypeFile}}|undefined{{/isResponseTypeFile}}{{/returnType}}{{^returnType}}any{{/returnType}}>{{/isResponseFile}}(`${this.configuration.basePath}{{{path}}}`,{{#isBodyAllowed}} - {{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}{{#hasFormParams}}convertFormParamsToString ? formParams.toString() : formParams{{/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}{{{path}}}`, { + body: {{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}{{#hasFormParams}}convertFormParamsToString ? formParams.toString() : formParams{{/hasFormParams}}{{^hasFormParams}}null{{/hasFormParams}}{{/bodyParam}}, {{#hasQueryParams}} params: queryParameters, {{/hasQueryParams}} From 944b89c4ab6fd4710ee03b6f1a587d230d6336be Mon Sep 17 00:00:00 2001 From: Dario Simone Date: Wed, 30 Sep 2020 20:47:09 +0200 Subject: [PATCH 2/4] update sample files --- .../builds/default/api/pet.service.ts | 36 ++++++++++++------- .../builds/default/api/store.service.ts | 17 ++++++--- .../builds/default/api/user.service.ts | 36 ++++++++++++------- .../builds/with-npm/api/pet.service.ts | 36 ++++++++++++------- .../builds/with-npm/api/store.service.ts | 17 ++++++--- .../builds/with-npm/api/user.service.ts | 36 ++++++++++++------- .../builds/default/api/pet.service.ts | 36 ++++++++++++------- .../builds/default/api/store.service.ts | 17 ++++++--- .../builds/default/api/user.service.ts | 36 ++++++++++++------- .../builds/with-npm/api/pet.service.ts | 36 ++++++++++++------- .../builds/with-npm/api/store.service.ts | 17 ++++++--- .../builds/with-npm/api/user.service.ts | 36 ++++++++++++------- .../builds/default/api/pet.service.ts | 36 ++++++++++++------- .../builds/default/api/store.service.ts | 17 ++++++--- .../builds/default/api/user.service.ts | 36 ++++++++++++------- .../builds/with-npm/api/pet.service.ts | 36 ++++++++++++------- .../builds/with-npm/api/store.service.ts | 17 ++++++--- .../builds/with-npm/api/user.service.ts | 36 ++++++++++++------- .../builds/default/api/pet.service.ts | 36 ++++++++++++------- .../builds/default/api/store.service.ts | 17 ++++++--- .../builds/default/api/user.service.ts | 36 ++++++++++++------- .../builds/with-npm/api/pet.service.ts | 36 ++++++++++++------- .../builds/with-npm/api/store.service.ts | 17 ++++++--- .../builds/with-npm/api/user.service.ts | 36 ++++++++++++------- .../builds/default/api/pet.service.ts | 36 ++++++++++++------- .../builds/default/api/store.service.ts | 17 ++++++--- .../builds/default/api/user.service.ts | 36 ++++++++++++------- .../builds/with-npm/api/pet.service.ts | 36 ++++++++++++------- .../builds/with-npm/api/store.service.ts | 17 ++++++--- .../builds/with-npm/api/user.service.ts | 36 ++++++++++++------- .../api/pet.service.ts | 36 ++++++++++++------- .../api/store.service.ts | 17 ++++++--- .../api/user.service.ts | 36 ++++++++++++------- .../builds/with-npm/api/pet.service.ts | 36 ++++++++++++------- .../builds/with-npm/api/store.service.ts | 17 ++++++--- .../builds/with-npm/api/user.service.ts | 36 ++++++++++++------- .../api/pet.service.ts | 36 ++++++++++++------- .../api/store.service.ts | 17 ++++++--- .../api/user.service.ts | 36 ++++++++++++------- .../builds/default/api/pet.service.ts | 36 ++++++++++++------- .../builds/default/api/store.service.ts | 17 ++++++--- .../builds/default/api/user.service.ts | 36 ++++++++++++------- .../builds/with-npm/api/pet.service.ts | 36 ++++++++++++------- .../builds/with-npm/api/store.service.ts | 17 ++++++--- .../builds/with-npm/api/user.service.ts | 36 ++++++++++++------- 45 files changed, 900 insertions(+), 435 deletions(-) diff --git a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/pet.service.ts b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/pet.service.ts index 46fef0be89fe..e31376de8185 100644 --- a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/pet.service.ts @@ -148,9 +148,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -204,8 +205,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -264,8 +267,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get>(`${this.configuration.basePath}/pet/findByStatus`, + return this.httpClient.request>("get", + `${this.configuration.basePath}/pet/findByStatus`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -326,8 +331,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get>(`${this.configuration.basePath}/pet/findByTags`, + return this.httpClient.request>("get", + `${this.configuration.basePath}/pet/findByTags`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -381,8 +388,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -442,9 +451,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/pet`, - body, + return this.httpClient.request("put", + `${this.configuration.basePath}/pet`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -518,9 +528,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, - convertFormParamsToString ? formParams.toString() : formParams, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: convertFormParamsToString ? formParams.toString() : formParams, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -598,9 +609,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, - convertFormParamsToString ? formParams.toString() : formParams, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, { + body: convertFormParamsToString ? formParams.toString() : formParams, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/store.service.ts b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/store.service.ts index d5d08ab3adc3..d010f8814d9e 100644 --- a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/store.service.ts @@ -118,8 +118,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -167,8 +169,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`, + return this.httpClient.request<{ [key: string]: number; }>("get", + `${this.configuration.basePath}/store/inventory`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -214,8 +218,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -268,9 +274,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/store/order`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/store/order`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/user.service.ts b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/user.service.ts index 399676219054..fa1be0673bc3 100644 --- a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/user.service.ts @@ -126,9 +126,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -179,9 +180,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user/createWithArray`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user/createWithArray`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -232,9 +234,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user/createWithList`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user/createWithList`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -278,8 +281,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -324,8 +329,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -384,8 +391,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/login`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/login`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -425,8 +434,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/logout`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/logout`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -482,9 +493,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, - body, + return this.httpClient.request("put", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/pet.service.ts b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/pet.service.ts index 46fef0be89fe..e31376de8185 100644 --- a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/pet.service.ts @@ -148,9 +148,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -204,8 +205,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -264,8 +267,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get>(`${this.configuration.basePath}/pet/findByStatus`, + return this.httpClient.request>("get", + `${this.configuration.basePath}/pet/findByStatus`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -326,8 +331,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get>(`${this.configuration.basePath}/pet/findByTags`, + return this.httpClient.request>("get", + `${this.configuration.basePath}/pet/findByTags`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -381,8 +388,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -442,9 +451,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/pet`, - body, + return this.httpClient.request("put", + `${this.configuration.basePath}/pet`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -518,9 +528,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, - convertFormParamsToString ? formParams.toString() : formParams, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: convertFormParamsToString ? formParams.toString() : formParams, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -598,9 +609,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, - convertFormParamsToString ? formParams.toString() : formParams, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, { + body: convertFormParamsToString ? formParams.toString() : formParams, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/store.service.ts b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/store.service.ts index d5d08ab3adc3..d010f8814d9e 100644 --- a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/store.service.ts @@ -118,8 +118,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -167,8 +169,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`, + return this.httpClient.request<{ [key: string]: number; }>("get", + `${this.configuration.basePath}/store/inventory`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -214,8 +218,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -268,9 +274,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/store/order`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/store/order`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/user.service.ts b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/user.service.ts index 399676219054..fa1be0673bc3 100644 --- a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/user.service.ts @@ -126,9 +126,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -179,9 +180,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user/createWithArray`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user/createWithArray`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -232,9 +234,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user/createWithList`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user/createWithList`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -278,8 +281,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -324,8 +329,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -384,8 +391,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/login`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/login`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -425,8 +434,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/logout`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/logout`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -482,9 +493,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, - body, + return this.httpClient.request("put", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/pet.service.ts b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/pet.service.ts index c6125084a2d6..4ecd848426c8 100644 --- a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/pet.service.ts @@ -146,9 +146,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -202,8 +203,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -262,8 +265,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get>(`${this.configuration.basePath}/pet/findByStatus`, + return this.httpClient.request>("get", + `${this.configuration.basePath}/pet/findByStatus`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -324,8 +329,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get>(`${this.configuration.basePath}/pet/findByTags`, + return this.httpClient.request>("get", + `${this.configuration.basePath}/pet/findByTags`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -379,8 +386,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -440,9 +449,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/pet`, - body, + return this.httpClient.request("put", + `${this.configuration.basePath}/pet`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -516,9 +526,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, - convertFormParamsToString ? formParams.toString() : formParams, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: convertFormParamsToString ? formParams.toString() : formParams, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -596,9 +607,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, - convertFormParamsToString ? formParams.toString() : formParams, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, { + body: convertFormParamsToString ? formParams.toString() : formParams, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/store.service.ts b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/store.service.ts index a6065292a6db..06a7ec2223db 100644 --- a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/store.service.ts @@ -116,8 +116,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -165,8 +167,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`, + return this.httpClient.request<{ [key: string]: number; }>("get", + `${this.configuration.basePath}/store/inventory`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -212,8 +216,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -266,9 +272,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/store/order`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/store/order`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/user.service.ts b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/user.service.ts index da1199c86d45..e40edc904d20 100644 --- a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/user.service.ts @@ -124,9 +124,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -177,9 +178,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user/createWithArray`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user/createWithArray`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -230,9 +232,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user/createWithList`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user/createWithList`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -276,8 +279,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -322,8 +327,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -382,8 +389,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/login`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/login`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -423,8 +432,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/logout`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/logout`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -480,9 +491,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, - body, + return this.httpClient.request("put", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/pet.service.ts b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/pet.service.ts index c6125084a2d6..4ecd848426c8 100644 --- a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/pet.service.ts @@ -146,9 +146,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -202,8 +203,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -262,8 +265,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get>(`${this.configuration.basePath}/pet/findByStatus`, + return this.httpClient.request>("get", + `${this.configuration.basePath}/pet/findByStatus`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -324,8 +329,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get>(`${this.configuration.basePath}/pet/findByTags`, + return this.httpClient.request>("get", + `${this.configuration.basePath}/pet/findByTags`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -379,8 +386,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -440,9 +449,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/pet`, - body, + return this.httpClient.request("put", + `${this.configuration.basePath}/pet`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -516,9 +526,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, - convertFormParamsToString ? formParams.toString() : formParams, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: convertFormParamsToString ? formParams.toString() : formParams, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -596,9 +607,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, - convertFormParamsToString ? formParams.toString() : formParams, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, { + body: convertFormParamsToString ? formParams.toString() : formParams, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/store.service.ts b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/store.service.ts index a6065292a6db..06a7ec2223db 100644 --- a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/store.service.ts @@ -116,8 +116,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -165,8 +167,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`, + return this.httpClient.request<{ [key: string]: number; }>("get", + `${this.configuration.basePath}/store/inventory`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -212,8 +216,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -266,9 +272,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/store/order`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/store/order`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/user.service.ts b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/user.service.ts index da1199c86d45..e40edc904d20 100644 --- a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/user.service.ts @@ -124,9 +124,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -177,9 +178,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user/createWithArray`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user/createWithArray`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -230,9 +232,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user/createWithList`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user/createWithList`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -276,8 +279,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -322,8 +327,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -382,8 +389,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/login`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/login`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -423,8 +432,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/logout`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/logout`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -480,9 +491,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, - body, + return this.httpClient.request("put", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/pet.service.ts b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/pet.service.ts index 46fef0be89fe..e31376de8185 100644 --- a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/pet.service.ts @@ -148,9 +148,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -204,8 +205,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -264,8 +267,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get>(`${this.configuration.basePath}/pet/findByStatus`, + return this.httpClient.request>("get", + `${this.configuration.basePath}/pet/findByStatus`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -326,8 +331,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get>(`${this.configuration.basePath}/pet/findByTags`, + return this.httpClient.request>("get", + `${this.configuration.basePath}/pet/findByTags`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -381,8 +388,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -442,9 +451,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/pet`, - body, + return this.httpClient.request("put", + `${this.configuration.basePath}/pet`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -518,9 +528,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, - convertFormParamsToString ? formParams.toString() : formParams, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: convertFormParamsToString ? formParams.toString() : formParams, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -598,9 +609,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, - convertFormParamsToString ? formParams.toString() : formParams, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, { + body: convertFormParamsToString ? formParams.toString() : formParams, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/store.service.ts b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/store.service.ts index d5d08ab3adc3..d010f8814d9e 100644 --- a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/store.service.ts @@ -118,8 +118,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -167,8 +169,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`, + return this.httpClient.request<{ [key: string]: number; }>("get", + `${this.configuration.basePath}/store/inventory`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -214,8 +218,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -268,9 +274,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/store/order`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/store/order`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/user.service.ts b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/user.service.ts index 399676219054..fa1be0673bc3 100644 --- a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/user.service.ts @@ -126,9 +126,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -179,9 +180,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user/createWithArray`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user/createWithArray`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -232,9 +234,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user/createWithList`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user/createWithList`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -278,8 +281,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -324,8 +329,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -384,8 +391,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/login`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/login`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -425,8 +434,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/logout`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/logout`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -482,9 +493,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, - body, + return this.httpClient.request("put", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/pet.service.ts b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/pet.service.ts index 46fef0be89fe..e31376de8185 100644 --- a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/pet.service.ts @@ -148,9 +148,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -204,8 +205,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -264,8 +267,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get>(`${this.configuration.basePath}/pet/findByStatus`, + return this.httpClient.request>("get", + `${this.configuration.basePath}/pet/findByStatus`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -326,8 +331,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get>(`${this.configuration.basePath}/pet/findByTags`, + return this.httpClient.request>("get", + `${this.configuration.basePath}/pet/findByTags`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -381,8 +388,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -442,9 +451,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/pet`, - body, + return this.httpClient.request("put", + `${this.configuration.basePath}/pet`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -518,9 +528,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, - convertFormParamsToString ? formParams.toString() : formParams, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: convertFormParamsToString ? formParams.toString() : formParams, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -598,9 +609,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, - convertFormParamsToString ? formParams.toString() : formParams, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, { + body: convertFormParamsToString ? formParams.toString() : formParams, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/store.service.ts b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/store.service.ts index d5d08ab3adc3..d010f8814d9e 100644 --- a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/store.service.ts @@ -118,8 +118,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -167,8 +169,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`, + return this.httpClient.request<{ [key: string]: number; }>("get", + `${this.configuration.basePath}/store/inventory`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -214,8 +218,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -268,9 +274,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/store/order`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/store/order`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/user.service.ts b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/user.service.ts index 399676219054..fa1be0673bc3 100644 --- a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/user.service.ts @@ -126,9 +126,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -179,9 +180,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user/createWithArray`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user/createWithArray`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -232,9 +234,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user/createWithList`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user/createWithList`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -278,8 +281,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -324,8 +329,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -384,8 +391,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/login`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/login`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -425,8 +434,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/logout`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/logout`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -482,9 +493,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, - body, + return this.httpClient.request("put", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/pet.service.ts b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/pet.service.ts index c6125084a2d6..4ecd848426c8 100644 --- a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/pet.service.ts @@ -146,9 +146,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -202,8 +203,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -262,8 +265,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get>(`${this.configuration.basePath}/pet/findByStatus`, + return this.httpClient.request>("get", + `${this.configuration.basePath}/pet/findByStatus`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -324,8 +329,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get>(`${this.configuration.basePath}/pet/findByTags`, + return this.httpClient.request>("get", + `${this.configuration.basePath}/pet/findByTags`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -379,8 +386,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -440,9 +449,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/pet`, - body, + return this.httpClient.request("put", + `${this.configuration.basePath}/pet`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -516,9 +526,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, - convertFormParamsToString ? formParams.toString() : formParams, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: convertFormParamsToString ? formParams.toString() : formParams, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -596,9 +607,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, - convertFormParamsToString ? formParams.toString() : formParams, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, { + body: convertFormParamsToString ? formParams.toString() : formParams, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/store.service.ts b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/store.service.ts index a6065292a6db..06a7ec2223db 100644 --- a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/store.service.ts @@ -116,8 +116,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -165,8 +167,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`, + return this.httpClient.request<{ [key: string]: number; }>("get", + `${this.configuration.basePath}/store/inventory`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -212,8 +216,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -266,9 +272,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/store/order`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/store/order`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/user.service.ts b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/user.service.ts index da1199c86d45..e40edc904d20 100644 --- a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/user.service.ts @@ -124,9 +124,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -177,9 +178,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user/createWithArray`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user/createWithArray`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -230,9 +232,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user/createWithList`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user/createWithList`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -276,8 +279,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -322,8 +327,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -382,8 +389,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/login`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/login`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -423,8 +432,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/logout`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/logout`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -480,9 +491,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, - body, + return this.httpClient.request("put", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/pet.service.ts b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/pet.service.ts index c6125084a2d6..4ecd848426c8 100644 --- a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/pet.service.ts @@ -146,9 +146,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -202,8 +203,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -262,8 +265,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get>(`${this.configuration.basePath}/pet/findByStatus`, + return this.httpClient.request>("get", + `${this.configuration.basePath}/pet/findByStatus`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -324,8 +329,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get>(`${this.configuration.basePath}/pet/findByTags`, + return this.httpClient.request>("get", + `${this.configuration.basePath}/pet/findByTags`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -379,8 +386,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -440,9 +449,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/pet`, - body, + return this.httpClient.request("put", + `${this.configuration.basePath}/pet`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -516,9 +526,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, - convertFormParamsToString ? formParams.toString() : formParams, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: convertFormParamsToString ? formParams.toString() : formParams, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -596,9 +607,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, - convertFormParamsToString ? formParams.toString() : formParams, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, { + body: convertFormParamsToString ? formParams.toString() : formParams, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/store.service.ts b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/store.service.ts index a6065292a6db..06a7ec2223db 100644 --- a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/store.service.ts @@ -116,8 +116,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -165,8 +167,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`, + return this.httpClient.request<{ [key: string]: number; }>("get", + `${this.configuration.basePath}/store/inventory`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -212,8 +216,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -266,9 +272,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/store/order`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/store/order`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/user.service.ts b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/user.service.ts index da1199c86d45..e40edc904d20 100644 --- a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/user.service.ts @@ -124,9 +124,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -177,9 +178,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user/createWithArray`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user/createWithArray`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -230,9 +232,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user/createWithList`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user/createWithList`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -276,8 +279,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -322,8 +327,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -382,8 +389,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/login`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/login`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -423,8 +432,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/logout`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/logout`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -480,9 +491,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, - body, + return this.httpClient.request("put", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/pet.service.ts b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/pet.service.ts index 46fef0be89fe..e31376de8185 100644 --- a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/pet.service.ts @@ -148,9 +148,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -204,8 +205,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -264,8 +267,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get>(`${this.configuration.basePath}/pet/findByStatus`, + return this.httpClient.request>("get", + `${this.configuration.basePath}/pet/findByStatus`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -326,8 +331,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get>(`${this.configuration.basePath}/pet/findByTags`, + return this.httpClient.request>("get", + `${this.configuration.basePath}/pet/findByTags`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -381,8 +388,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -442,9 +451,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/pet`, - body, + return this.httpClient.request("put", + `${this.configuration.basePath}/pet`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -518,9 +528,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, - convertFormParamsToString ? formParams.toString() : formParams, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: convertFormParamsToString ? formParams.toString() : formParams, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -598,9 +609,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, - convertFormParamsToString ? formParams.toString() : formParams, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, { + body: convertFormParamsToString ? formParams.toString() : formParams, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/store.service.ts b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/store.service.ts index d5d08ab3adc3..d010f8814d9e 100644 --- a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/store.service.ts @@ -118,8 +118,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -167,8 +169,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`, + return this.httpClient.request<{ [key: string]: number; }>("get", + `${this.configuration.basePath}/store/inventory`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -214,8 +218,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -268,9 +274,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/store/order`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/store/order`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/user.service.ts b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/user.service.ts index 399676219054..fa1be0673bc3 100644 --- a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/user.service.ts @@ -126,9 +126,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -179,9 +180,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user/createWithArray`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user/createWithArray`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -232,9 +234,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user/createWithList`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user/createWithList`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -278,8 +281,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -324,8 +329,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -384,8 +391,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/login`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/login`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -425,8 +434,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/logout`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/logout`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -482,9 +493,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, - body, + return this.httpClient.request("put", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/pet.service.ts b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/pet.service.ts index 46fef0be89fe..e31376de8185 100644 --- a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/pet.service.ts @@ -148,9 +148,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -204,8 +205,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -264,8 +267,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get>(`${this.configuration.basePath}/pet/findByStatus`, + return this.httpClient.request>("get", + `${this.configuration.basePath}/pet/findByStatus`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -326,8 +331,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get>(`${this.configuration.basePath}/pet/findByTags`, + return this.httpClient.request>("get", + `${this.configuration.basePath}/pet/findByTags`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -381,8 +388,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -442,9 +451,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/pet`, - body, + return this.httpClient.request("put", + `${this.configuration.basePath}/pet`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -518,9 +528,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, - convertFormParamsToString ? formParams.toString() : formParams, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: convertFormParamsToString ? formParams.toString() : formParams, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -598,9 +609,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, - convertFormParamsToString ? formParams.toString() : formParams, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, { + body: convertFormParamsToString ? formParams.toString() : formParams, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/store.service.ts b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/store.service.ts index d5d08ab3adc3..d010f8814d9e 100644 --- a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/store.service.ts @@ -118,8 +118,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -167,8 +169,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`, + return this.httpClient.request<{ [key: string]: number; }>("get", + `${this.configuration.basePath}/store/inventory`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -214,8 +218,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -268,9 +274,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/store/order`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/store/order`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/user.service.ts b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/user.service.ts index 399676219054..fa1be0673bc3 100644 --- a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/user.service.ts @@ -126,9 +126,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -179,9 +180,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user/createWithArray`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user/createWithArray`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -232,9 +234,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user/createWithList`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user/createWithList`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -278,8 +281,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -324,8 +329,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -384,8 +391,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/login`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/login`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -425,8 +434,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/logout`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/logout`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -482,9 +493,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, - body, + return this.httpClient.request("put", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/pet.service.ts b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/pet.service.ts index 8552f9cb4e50..2059e5cb286b 100644 --- a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/pet.service.ts @@ -198,9 +198,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -255,8 +256,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -316,8 +319,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get>(`${this.configuration.basePath}/pet/findByStatus`, + return this.httpClient.request>("get", + `${this.configuration.basePath}/pet/findByStatus`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -379,8 +384,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get>(`${this.configuration.basePath}/pet/findByTags`, + return this.httpClient.request>("get", + `${this.configuration.basePath}/pet/findByTags`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -435,8 +442,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -497,9 +506,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/pet`, - body, + return this.httpClient.request("put", + `${this.configuration.basePath}/pet`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -574,9 +584,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, - convertFormParamsToString ? formParams.toString() : formParams, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: convertFormParamsToString ? formParams.toString() : formParams, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -655,9 +666,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, - convertFormParamsToString ? formParams.toString() : formParams, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, { + body: convertFormParamsToString ? formParams.toString() : formParams, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/store.service.ts b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/store.service.ts index b44e765a0fa4..41611b81e313 100644 --- a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/store.service.ts @@ -134,8 +134,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -183,8 +185,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`, + return this.httpClient.request<{ [key: string]: number; }>("get", + `${this.configuration.basePath}/store/inventory`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -231,8 +235,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -286,9 +292,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/store/order`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/store/order`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/user.service.ts b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/user.service.ts index 326c0f7b8730..8aab1ae29166 100644 --- a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/user.service.ts @@ -166,9 +166,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -220,9 +221,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user/createWithArray`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user/createWithArray`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -274,9 +276,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user/createWithList`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user/createWithList`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -321,8 +324,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -368,8 +373,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -429,8 +436,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/login`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/login`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -470,8 +479,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/logout`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/logout`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -528,9 +539,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, - body, + return this.httpClient.request("put", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/pet.service.ts b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/pet.service.ts index 46fef0be89fe..e31376de8185 100644 --- a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/pet.service.ts @@ -148,9 +148,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -204,8 +205,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -264,8 +267,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get>(`${this.configuration.basePath}/pet/findByStatus`, + return this.httpClient.request>("get", + `${this.configuration.basePath}/pet/findByStatus`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -326,8 +331,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get>(`${this.configuration.basePath}/pet/findByTags`, + return this.httpClient.request>("get", + `${this.configuration.basePath}/pet/findByTags`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -381,8 +388,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -442,9 +451,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/pet`, - body, + return this.httpClient.request("put", + `${this.configuration.basePath}/pet`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -518,9 +528,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, - convertFormParamsToString ? formParams.toString() : formParams, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: convertFormParamsToString ? formParams.toString() : formParams, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -598,9 +609,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, - convertFormParamsToString ? formParams.toString() : formParams, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, { + body: convertFormParamsToString ? formParams.toString() : formParams, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/store.service.ts b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/store.service.ts index d5d08ab3adc3..d010f8814d9e 100644 --- a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/store.service.ts @@ -118,8 +118,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -167,8 +169,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`, + return this.httpClient.request<{ [key: string]: number; }>("get", + `${this.configuration.basePath}/store/inventory`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -214,8 +218,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -268,9 +274,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/store/order`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/store/order`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/user.service.ts b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/user.service.ts index 399676219054..fa1be0673bc3 100644 --- a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/user.service.ts @@ -126,9 +126,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -179,9 +180,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user/createWithArray`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user/createWithArray`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -232,9 +234,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user/createWithList`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user/createWithList`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -278,8 +281,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -324,8 +329,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -384,8 +391,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/login`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/login`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -425,8 +434,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/logout`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/logout`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -482,9 +493,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, - body, + return this.httpClient.request("put", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/pet.service.ts b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/pet.service.ts index 46fef0be89fe..e31376de8185 100644 --- a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/pet.service.ts @@ -148,9 +148,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -204,8 +205,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -264,8 +267,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get>(`${this.configuration.basePath}/pet/findByStatus`, + return this.httpClient.request>("get", + `${this.configuration.basePath}/pet/findByStatus`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -326,8 +331,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get>(`${this.configuration.basePath}/pet/findByTags`, + return this.httpClient.request>("get", + `${this.configuration.basePath}/pet/findByTags`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -381,8 +388,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -442,9 +451,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/pet`, - body, + return this.httpClient.request("put", + `${this.configuration.basePath}/pet`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -518,9 +528,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, - convertFormParamsToString ? formParams.toString() : formParams, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: convertFormParamsToString ? formParams.toString() : formParams, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -598,9 +609,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, - convertFormParamsToString ? formParams.toString() : formParams, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, { + body: convertFormParamsToString ? formParams.toString() : formParams, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/store.service.ts b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/store.service.ts index d5d08ab3adc3..d010f8814d9e 100644 --- a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/store.service.ts @@ -118,8 +118,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -167,8 +169,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`, + return this.httpClient.request<{ [key: string]: number; }>("get", + `${this.configuration.basePath}/store/inventory`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -214,8 +218,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -268,9 +274,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/store/order`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/store/order`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/user.service.ts b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/user.service.ts index 399676219054..fa1be0673bc3 100644 --- a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/user.service.ts @@ -126,9 +126,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -179,9 +180,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user/createWithArray`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user/createWithArray`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -232,9 +234,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user/createWithList`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user/createWithList`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -278,8 +281,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -324,8 +329,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -384,8 +391,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/login`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/login`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -425,8 +434,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/logout`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/logout`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -482,9 +493,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, - body, + return this.httpClient.request("put", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/pet.service.ts b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/pet.service.ts index 46fef0be89fe..e31376de8185 100644 --- a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/pet.service.ts @@ -148,9 +148,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -204,8 +205,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -264,8 +267,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get>(`${this.configuration.basePath}/pet/findByStatus`, + return this.httpClient.request>("get", + `${this.configuration.basePath}/pet/findByStatus`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -326,8 +331,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get>(`${this.configuration.basePath}/pet/findByTags`, + return this.httpClient.request>("get", + `${this.configuration.basePath}/pet/findByTags`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -381,8 +388,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -442,9 +451,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/pet`, - body, + return this.httpClient.request("put", + `${this.configuration.basePath}/pet`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -518,9 +528,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, - convertFormParamsToString ? formParams.toString() : formParams, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: convertFormParamsToString ? formParams.toString() : formParams, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -598,9 +609,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, - convertFormParamsToString ? formParams.toString() : formParams, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, { + body: convertFormParamsToString ? formParams.toString() : formParams, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/store.service.ts b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/store.service.ts index d5d08ab3adc3..d010f8814d9e 100644 --- a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/store.service.ts @@ -118,8 +118,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -167,8 +169,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`, + return this.httpClient.request<{ [key: string]: number; }>("get", + `${this.configuration.basePath}/store/inventory`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -214,8 +218,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -268,9 +274,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/store/order`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/store/order`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/user.service.ts b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/user.service.ts index 399676219054..fa1be0673bc3 100644 --- a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/user.service.ts @@ -126,9 +126,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -179,9 +180,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user/createWithArray`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user/createWithArray`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -232,9 +234,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user/createWithList`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user/createWithList`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -278,8 +281,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -324,8 +329,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -384,8 +391,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/login`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/login`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -425,8 +434,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/logout`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/logout`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -482,9 +493,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, - body, + return this.httpClient.request("put", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/pet.service.ts b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/pet.service.ts index 46fef0be89fe..e31376de8185 100644 --- a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/pet.service.ts @@ -148,9 +148,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -204,8 +205,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -264,8 +267,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get>(`${this.configuration.basePath}/pet/findByStatus`, + return this.httpClient.request>("get", + `${this.configuration.basePath}/pet/findByStatus`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -326,8 +331,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get>(`${this.configuration.basePath}/pet/findByTags`, + return this.httpClient.request>("get", + `${this.configuration.basePath}/pet/findByTags`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -381,8 +388,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -442,9 +451,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/pet`, - body, + return this.httpClient.request("put", + `${this.configuration.basePath}/pet`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -518,9 +528,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, - convertFormParamsToString ? formParams.toString() : formParams, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { + body: convertFormParamsToString ? formParams.toString() : formParams, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -598,9 +609,10 @@ export class PetService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, - convertFormParamsToString ? formParams.toString() : formParams, + return this.httpClient.request("post", + `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, { + body: convertFormParamsToString ? formParams.toString() : formParams, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/store.service.ts b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/store.service.ts index d5d08ab3adc3..d010f8814d9e 100644 --- a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/store.service.ts @@ -118,8 +118,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -167,8 +169,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`, + return this.httpClient.request<{ [key: string]: number; }>("get", + `${this.configuration.basePath}/store/inventory`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -214,8 +218,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -268,9 +274,10 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/store/order`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/store/order`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/user.service.ts b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/user.service.ts index 399676219054..fa1be0673bc3 100644 --- a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/user.service.ts @@ -126,9 +126,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -179,9 +180,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user/createWithArray`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user/createWithArray`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -232,9 +234,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/user/createWithList`, - body, + return this.httpClient.request("post", + `${this.configuration.basePath}/user/createWithList`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -278,8 +281,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, + return this.httpClient.request("delete", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -324,8 +329,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -384,8 +391,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/login`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/login`, { + body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -425,8 +434,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/user/logout`, + return this.httpClient.request("get", + `${this.configuration.basePath}/user/logout`, { + body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -482,9 +493,10 @@ export class UserService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, - body, + return this.httpClient.request("put", + `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { + body: body, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, From 1c790962de474d6d983eb9f823a78d72f48e7d26 Mon Sep 17 00:00:00 2001 From: Dario Simone Date: Sun, 15 Nov 2020 14:38:45 +0100 Subject: [PATCH 3/4] do not emit body parameter if not used --- .../resources/typescript-angular/api.service.mustache | 9 ++++++++- .../builds/default/api/pet.service.ts | 4 ---- .../builds/default/api/store.service.ts | 3 --- .../builds/default/api/user.service.ts | 4 ---- .../builds/with-npm/api/pet.service.ts | 4 ---- .../builds/with-npm/api/store.service.ts | 3 --- .../builds/with-npm/api/user.service.ts | 4 ---- .../builds/default/api/pet.service.ts | 4 ---- .../builds/default/api/store.service.ts | 3 --- .../builds/default/api/user.service.ts | 4 ---- .../builds/with-npm/api/pet.service.ts | 4 ---- .../builds/with-npm/api/store.service.ts | 3 --- .../builds/with-npm/api/user.service.ts | 4 ---- .../builds/default/api/pet.service.ts | 4 ---- .../builds/default/api/store.service.ts | 3 --- .../builds/default/api/user.service.ts | 4 ---- .../builds/with-npm/api/pet.service.ts | 4 ---- .../builds/with-npm/api/store.service.ts | 3 --- .../builds/with-npm/api/user.service.ts | 4 ---- .../builds/default/api/pet.service.ts | 4 ---- .../builds/default/api/store.service.ts | 3 --- .../builds/default/api/user.service.ts | 4 ---- .../builds/with-npm/api/pet.service.ts | 4 ---- .../builds/with-npm/api/store.service.ts | 3 --- .../builds/with-npm/api/user.service.ts | 4 ---- .../builds/default/api/pet.service.ts | 4 ---- .../builds/default/api/store.service.ts | 3 --- .../builds/default/api/user.service.ts | 4 ---- .../builds/with-npm/api/pet.service.ts | 4 ---- .../builds/with-npm/api/store.service.ts | 3 --- .../builds/with-npm/api/user.service.ts | 4 ---- .../builds/single-request-parameter/api/pet.service.ts | 4 ---- .../builds/single-request-parameter/api/store.service.ts | 3 --- .../builds/single-request-parameter/api/user.service.ts | 4 ---- .../builds/with-npm/api/pet.service.ts | 4 ---- .../builds/with-npm/api/store.service.ts | 3 --- .../builds/with-npm/api/user.service.ts | 4 ---- .../builds/with-prefixed-module-name/api/pet.service.ts | 4 ---- .../with-prefixed-module-name/api/store.service.ts | 3 --- .../builds/with-prefixed-module-name/api/user.service.ts | 4 ---- .../builds/default/api/pet.service.ts | 4 ---- .../builds/default/api/store.service.ts | 3 --- .../builds/default/api/user.service.ts | 4 ---- .../builds/with-npm/api/pet.service.ts | 4 ---- .../builds/with-npm/api/store.service.ts | 3 --- .../builds/with-npm/api/user.service.ts | 4 ---- 46 files changed, 8 insertions(+), 166 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/typescript-angular/api.service.mustache b/modules/openapi-generator/src/main/resources/typescript-angular/api.service.mustache index 122764e5f058..623df08e6dd2 100644 --- a/modules/openapi-generator/src/main/resources/typescript-angular/api.service.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-angular/api.service.mustache @@ -337,7 +337,14 @@ export class {{classname}} { return this.httpClient.request{{^isResponseFile}}<{{#returnType}}{{{returnType}}}{{#isResponseTypeFile}}|undefined{{/isResponseTypeFile}}{{/returnType}}{{^returnType}}any{{/returnType}}>{{/isResponseFile}}("{{httpMethod}}", `${this.configuration.basePath}{{{path}}}`, { - body: {{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}{{#hasFormParams}}convertFormParamsToString ? formParams.toString() : formParams{{/hasFormParams}}{{^hasFormParams}}null{{/hasFormParams}}{{/bodyParam}}, + {{#hasBodyParam}} + body: {{#bodyParam}}{{paramName}}{{/bodyParam}}, + {{/hasBodyParam}} + {{^hasBodyParam}} + {{#hasFormParams}} + body: convertFormParamsToString ? formParams.toString() : formParams, + {{/hasFormParams}} + {{/hasBodyParam}} {{#hasQueryParams}} params: queryParameters, {{/hasQueryParams}} diff --git a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/pet.service.ts b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/pet.service.ts index e31376de8185..4266975865a6 100644 --- a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/pet.service.ts @@ -208,7 +208,6 @@ export class PetService { return this.httpClient.request("delete", `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -270,7 +269,6 @@ export class PetService { return this.httpClient.request>("get", `${this.configuration.basePath}/pet/findByStatus`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -334,7 +332,6 @@ export class PetService { return this.httpClient.request>("get", `${this.configuration.basePath}/pet/findByTags`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -391,7 +388,6 @@ export class PetService { return this.httpClient.request("get", `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/store.service.ts b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/store.service.ts index d010f8814d9e..f85006e6d986 100644 --- a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/store.service.ts @@ -121,7 +121,6 @@ export class StoreService { return this.httpClient.request("delete", `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -172,7 +171,6 @@ export class StoreService { return this.httpClient.request<{ [key: string]: number; }>("get", `${this.configuration.basePath}/store/inventory`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -221,7 +219,6 @@ export class StoreService { return this.httpClient.request("get", `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/user.service.ts b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/user.service.ts index fa1be0673bc3..6d58b323fb3b 100644 --- a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/user.service.ts @@ -284,7 +284,6 @@ export class UserService { return this.httpClient.request("delete", `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -332,7 +331,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -394,7 +392,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/login`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -437,7 +434,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/logout`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/pet.service.ts b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/pet.service.ts index e31376de8185..4266975865a6 100644 --- a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/pet.service.ts @@ -208,7 +208,6 @@ export class PetService { return this.httpClient.request("delete", `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -270,7 +269,6 @@ export class PetService { return this.httpClient.request>("get", `${this.configuration.basePath}/pet/findByStatus`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -334,7 +332,6 @@ export class PetService { return this.httpClient.request>("get", `${this.configuration.basePath}/pet/findByTags`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -391,7 +388,6 @@ export class PetService { return this.httpClient.request("get", `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/store.service.ts b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/store.service.ts index d010f8814d9e..f85006e6d986 100644 --- a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/store.service.ts @@ -121,7 +121,6 @@ export class StoreService { return this.httpClient.request("delete", `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -172,7 +171,6 @@ export class StoreService { return this.httpClient.request<{ [key: string]: number; }>("get", `${this.configuration.basePath}/store/inventory`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -221,7 +219,6 @@ export class StoreService { return this.httpClient.request("get", `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/user.service.ts b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/user.service.ts index fa1be0673bc3..6d58b323fb3b 100644 --- a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/user.service.ts @@ -284,7 +284,6 @@ export class UserService { return this.httpClient.request("delete", `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -332,7 +331,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -394,7 +392,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/login`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -437,7 +434,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/logout`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/pet.service.ts b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/pet.service.ts index 4ecd848426c8..29e91f7e11d8 100644 --- a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/pet.service.ts @@ -206,7 +206,6 @@ export class PetService { return this.httpClient.request("delete", `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -268,7 +267,6 @@ export class PetService { return this.httpClient.request>("get", `${this.configuration.basePath}/pet/findByStatus`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -332,7 +330,6 @@ export class PetService { return this.httpClient.request>("get", `${this.configuration.basePath}/pet/findByTags`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -389,7 +386,6 @@ export class PetService { return this.httpClient.request("get", `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/store.service.ts b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/store.service.ts index 06a7ec2223db..fde7b89e62ab 100644 --- a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/store.service.ts @@ -119,7 +119,6 @@ export class StoreService { return this.httpClient.request("delete", `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -170,7 +169,6 @@ export class StoreService { return this.httpClient.request<{ [key: string]: number; }>("get", `${this.configuration.basePath}/store/inventory`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -219,7 +217,6 @@ export class StoreService { return this.httpClient.request("get", `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/user.service.ts b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/user.service.ts index e40edc904d20..1e40238c2e86 100644 --- a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/user.service.ts @@ -282,7 +282,6 @@ export class UserService { return this.httpClient.request("delete", `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -330,7 +329,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -392,7 +390,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/login`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -435,7 +432,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/logout`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/pet.service.ts b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/pet.service.ts index 4ecd848426c8..29e91f7e11d8 100644 --- a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/pet.service.ts @@ -206,7 +206,6 @@ export class PetService { return this.httpClient.request("delete", `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -268,7 +267,6 @@ export class PetService { return this.httpClient.request>("get", `${this.configuration.basePath}/pet/findByStatus`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -332,7 +330,6 @@ export class PetService { return this.httpClient.request>("get", `${this.configuration.basePath}/pet/findByTags`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -389,7 +386,6 @@ export class PetService { return this.httpClient.request("get", `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/store.service.ts b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/store.service.ts index 06a7ec2223db..fde7b89e62ab 100644 --- a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/store.service.ts @@ -119,7 +119,6 @@ export class StoreService { return this.httpClient.request("delete", `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -170,7 +169,6 @@ export class StoreService { return this.httpClient.request<{ [key: string]: number; }>("get", `${this.configuration.basePath}/store/inventory`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -219,7 +217,6 @@ export class StoreService { return this.httpClient.request("get", `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/user.service.ts b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/user.service.ts index e40edc904d20..1e40238c2e86 100644 --- a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/user.service.ts @@ -282,7 +282,6 @@ export class UserService { return this.httpClient.request("delete", `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -330,7 +329,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -392,7 +390,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/login`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -435,7 +432,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/logout`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/pet.service.ts b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/pet.service.ts index e31376de8185..4266975865a6 100644 --- a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/pet.service.ts @@ -208,7 +208,6 @@ export class PetService { return this.httpClient.request("delete", `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -270,7 +269,6 @@ export class PetService { return this.httpClient.request>("get", `${this.configuration.basePath}/pet/findByStatus`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -334,7 +332,6 @@ export class PetService { return this.httpClient.request>("get", `${this.configuration.basePath}/pet/findByTags`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -391,7 +388,6 @@ export class PetService { return this.httpClient.request("get", `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/store.service.ts b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/store.service.ts index d010f8814d9e..f85006e6d986 100644 --- a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/store.service.ts @@ -121,7 +121,6 @@ export class StoreService { return this.httpClient.request("delete", `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -172,7 +171,6 @@ export class StoreService { return this.httpClient.request<{ [key: string]: number; }>("get", `${this.configuration.basePath}/store/inventory`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -221,7 +219,6 @@ export class StoreService { return this.httpClient.request("get", `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/user.service.ts b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/user.service.ts index fa1be0673bc3..6d58b323fb3b 100644 --- a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/user.service.ts @@ -284,7 +284,6 @@ export class UserService { return this.httpClient.request("delete", `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -332,7 +331,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -394,7 +392,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/login`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -437,7 +434,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/logout`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/pet.service.ts b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/pet.service.ts index e31376de8185..4266975865a6 100644 --- a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/pet.service.ts @@ -208,7 +208,6 @@ export class PetService { return this.httpClient.request("delete", `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -270,7 +269,6 @@ export class PetService { return this.httpClient.request>("get", `${this.configuration.basePath}/pet/findByStatus`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -334,7 +332,6 @@ export class PetService { return this.httpClient.request>("get", `${this.configuration.basePath}/pet/findByTags`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -391,7 +388,6 @@ export class PetService { return this.httpClient.request("get", `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/store.service.ts b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/store.service.ts index d010f8814d9e..f85006e6d986 100644 --- a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/store.service.ts @@ -121,7 +121,6 @@ export class StoreService { return this.httpClient.request("delete", `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -172,7 +171,6 @@ export class StoreService { return this.httpClient.request<{ [key: string]: number; }>("get", `${this.configuration.basePath}/store/inventory`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -221,7 +219,6 @@ export class StoreService { return this.httpClient.request("get", `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/user.service.ts b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/user.service.ts index fa1be0673bc3..6d58b323fb3b 100644 --- a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/user.service.ts @@ -284,7 +284,6 @@ export class UserService { return this.httpClient.request("delete", `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -332,7 +331,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -394,7 +392,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/login`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -437,7 +434,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/logout`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/pet.service.ts b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/pet.service.ts index 4ecd848426c8..29e91f7e11d8 100644 --- a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/pet.service.ts @@ -206,7 +206,6 @@ export class PetService { return this.httpClient.request("delete", `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -268,7 +267,6 @@ export class PetService { return this.httpClient.request>("get", `${this.configuration.basePath}/pet/findByStatus`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -332,7 +330,6 @@ export class PetService { return this.httpClient.request>("get", `${this.configuration.basePath}/pet/findByTags`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -389,7 +386,6 @@ export class PetService { return this.httpClient.request("get", `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/store.service.ts b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/store.service.ts index 06a7ec2223db..fde7b89e62ab 100644 --- a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/store.service.ts @@ -119,7 +119,6 @@ export class StoreService { return this.httpClient.request("delete", `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -170,7 +169,6 @@ export class StoreService { return this.httpClient.request<{ [key: string]: number; }>("get", `${this.configuration.basePath}/store/inventory`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -219,7 +217,6 @@ export class StoreService { return this.httpClient.request("get", `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/user.service.ts b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/user.service.ts index e40edc904d20..1e40238c2e86 100644 --- a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/user.service.ts @@ -282,7 +282,6 @@ export class UserService { return this.httpClient.request("delete", `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -330,7 +329,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -392,7 +390,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/login`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -435,7 +432,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/logout`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/pet.service.ts b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/pet.service.ts index 4ecd848426c8..29e91f7e11d8 100644 --- a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/pet.service.ts @@ -206,7 +206,6 @@ export class PetService { return this.httpClient.request("delete", `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -268,7 +267,6 @@ export class PetService { return this.httpClient.request>("get", `${this.configuration.basePath}/pet/findByStatus`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -332,7 +330,6 @@ export class PetService { return this.httpClient.request>("get", `${this.configuration.basePath}/pet/findByTags`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -389,7 +386,6 @@ export class PetService { return this.httpClient.request("get", `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/store.service.ts b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/store.service.ts index 06a7ec2223db..fde7b89e62ab 100644 --- a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/store.service.ts @@ -119,7 +119,6 @@ export class StoreService { return this.httpClient.request("delete", `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -170,7 +169,6 @@ export class StoreService { return this.httpClient.request<{ [key: string]: number; }>("get", `${this.configuration.basePath}/store/inventory`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -219,7 +217,6 @@ export class StoreService { return this.httpClient.request("get", `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/user.service.ts b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/user.service.ts index e40edc904d20..1e40238c2e86 100644 --- a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/user.service.ts @@ -282,7 +282,6 @@ export class UserService { return this.httpClient.request("delete", `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -330,7 +329,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -392,7 +390,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/login`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -435,7 +432,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/logout`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/pet.service.ts b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/pet.service.ts index e31376de8185..4266975865a6 100644 --- a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/pet.service.ts @@ -208,7 +208,6 @@ export class PetService { return this.httpClient.request("delete", `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -270,7 +269,6 @@ export class PetService { return this.httpClient.request>("get", `${this.configuration.basePath}/pet/findByStatus`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -334,7 +332,6 @@ export class PetService { return this.httpClient.request>("get", `${this.configuration.basePath}/pet/findByTags`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -391,7 +388,6 @@ export class PetService { return this.httpClient.request("get", `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/store.service.ts b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/store.service.ts index d010f8814d9e..f85006e6d986 100644 --- a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/store.service.ts @@ -121,7 +121,6 @@ export class StoreService { return this.httpClient.request("delete", `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -172,7 +171,6 @@ export class StoreService { return this.httpClient.request<{ [key: string]: number; }>("get", `${this.configuration.basePath}/store/inventory`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -221,7 +219,6 @@ export class StoreService { return this.httpClient.request("get", `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/user.service.ts b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/user.service.ts index fa1be0673bc3..6d58b323fb3b 100644 --- a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/user.service.ts @@ -284,7 +284,6 @@ export class UserService { return this.httpClient.request("delete", `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -332,7 +331,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -394,7 +392,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/login`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -437,7 +434,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/logout`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/pet.service.ts b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/pet.service.ts index e31376de8185..4266975865a6 100644 --- a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/pet.service.ts @@ -208,7 +208,6 @@ export class PetService { return this.httpClient.request("delete", `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -270,7 +269,6 @@ export class PetService { return this.httpClient.request>("get", `${this.configuration.basePath}/pet/findByStatus`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -334,7 +332,6 @@ export class PetService { return this.httpClient.request>("get", `${this.configuration.basePath}/pet/findByTags`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -391,7 +388,6 @@ export class PetService { return this.httpClient.request("get", `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/store.service.ts b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/store.service.ts index d010f8814d9e..f85006e6d986 100644 --- a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/store.service.ts @@ -121,7 +121,6 @@ export class StoreService { return this.httpClient.request("delete", `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -172,7 +171,6 @@ export class StoreService { return this.httpClient.request<{ [key: string]: number; }>("get", `${this.configuration.basePath}/store/inventory`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -221,7 +219,6 @@ export class StoreService { return this.httpClient.request("get", `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/user.service.ts b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/user.service.ts index fa1be0673bc3..6d58b323fb3b 100644 --- a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/user.service.ts @@ -284,7 +284,6 @@ export class UserService { return this.httpClient.request("delete", `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -332,7 +331,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -394,7 +392,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/login`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -437,7 +434,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/logout`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/pet.service.ts b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/pet.service.ts index 2059e5cb286b..f6be0672446e 100644 --- a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/pet.service.ts @@ -259,7 +259,6 @@ export class PetService { return this.httpClient.request("delete", `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -322,7 +321,6 @@ export class PetService { return this.httpClient.request>("get", `${this.configuration.basePath}/pet/findByStatus`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -387,7 +385,6 @@ export class PetService { return this.httpClient.request>("get", `${this.configuration.basePath}/pet/findByTags`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -445,7 +442,6 @@ export class PetService { return this.httpClient.request("get", `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/store.service.ts b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/store.service.ts index 41611b81e313..a9fb744b0e06 100644 --- a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/store.service.ts @@ -137,7 +137,6 @@ export class StoreService { return this.httpClient.request("delete", `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -188,7 +187,6 @@ export class StoreService { return this.httpClient.request<{ [key: string]: number; }>("get", `${this.configuration.basePath}/store/inventory`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -238,7 +236,6 @@ export class StoreService { return this.httpClient.request("get", `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/user.service.ts b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/user.service.ts index 8aab1ae29166..39323845c749 100644 --- a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/user.service.ts @@ -327,7 +327,6 @@ export class UserService { return this.httpClient.request("delete", `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -376,7 +375,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -439,7 +437,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/login`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -482,7 +479,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/logout`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/pet.service.ts b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/pet.service.ts index e31376de8185..4266975865a6 100644 --- a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/pet.service.ts @@ -208,7 +208,6 @@ export class PetService { return this.httpClient.request("delete", `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -270,7 +269,6 @@ export class PetService { return this.httpClient.request>("get", `${this.configuration.basePath}/pet/findByStatus`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -334,7 +332,6 @@ export class PetService { return this.httpClient.request>("get", `${this.configuration.basePath}/pet/findByTags`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -391,7 +388,6 @@ export class PetService { return this.httpClient.request("get", `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/store.service.ts b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/store.service.ts index d010f8814d9e..f85006e6d986 100644 --- a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/store.service.ts @@ -121,7 +121,6 @@ export class StoreService { return this.httpClient.request("delete", `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -172,7 +171,6 @@ export class StoreService { return this.httpClient.request<{ [key: string]: number; }>("get", `${this.configuration.basePath}/store/inventory`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -221,7 +219,6 @@ export class StoreService { return this.httpClient.request("get", `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/user.service.ts b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/user.service.ts index fa1be0673bc3..6d58b323fb3b 100644 --- a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/user.service.ts @@ -284,7 +284,6 @@ export class UserService { return this.httpClient.request("delete", `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -332,7 +331,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -394,7 +392,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/login`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -437,7 +434,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/logout`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/pet.service.ts b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/pet.service.ts index e31376de8185..4266975865a6 100644 --- a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/pet.service.ts @@ -208,7 +208,6 @@ export class PetService { return this.httpClient.request("delete", `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -270,7 +269,6 @@ export class PetService { return this.httpClient.request>("get", `${this.configuration.basePath}/pet/findByStatus`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -334,7 +332,6 @@ export class PetService { return this.httpClient.request>("get", `${this.configuration.basePath}/pet/findByTags`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -391,7 +388,6 @@ export class PetService { return this.httpClient.request("get", `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/store.service.ts b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/store.service.ts index d010f8814d9e..f85006e6d986 100644 --- a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/store.service.ts @@ -121,7 +121,6 @@ export class StoreService { return this.httpClient.request("delete", `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -172,7 +171,6 @@ export class StoreService { return this.httpClient.request<{ [key: string]: number; }>("get", `${this.configuration.basePath}/store/inventory`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -221,7 +219,6 @@ export class StoreService { return this.httpClient.request("get", `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/user.service.ts b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/user.service.ts index fa1be0673bc3..6d58b323fb3b 100644 --- a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/user.service.ts @@ -284,7 +284,6 @@ export class UserService { return this.httpClient.request("delete", `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -332,7 +331,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -394,7 +392,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/login`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -437,7 +434,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/logout`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/pet.service.ts b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/pet.service.ts index e31376de8185..4266975865a6 100644 --- a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/pet.service.ts @@ -208,7 +208,6 @@ export class PetService { return this.httpClient.request("delete", `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -270,7 +269,6 @@ export class PetService { return this.httpClient.request>("get", `${this.configuration.basePath}/pet/findByStatus`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -334,7 +332,6 @@ export class PetService { return this.httpClient.request>("get", `${this.configuration.basePath}/pet/findByTags`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -391,7 +388,6 @@ export class PetService { return this.httpClient.request("get", `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/store.service.ts b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/store.service.ts index d010f8814d9e..f85006e6d986 100644 --- a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/store.service.ts @@ -121,7 +121,6 @@ export class StoreService { return this.httpClient.request("delete", `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -172,7 +171,6 @@ export class StoreService { return this.httpClient.request<{ [key: string]: number; }>("get", `${this.configuration.basePath}/store/inventory`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -221,7 +219,6 @@ export class StoreService { return this.httpClient.request("get", `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/user.service.ts b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/user.service.ts index fa1be0673bc3..6d58b323fb3b 100644 --- a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/user.service.ts @@ -284,7 +284,6 @@ export class UserService { return this.httpClient.request("delete", `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -332,7 +331,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -394,7 +392,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/login`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -437,7 +434,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/logout`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/pet.service.ts b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/pet.service.ts index e31376de8185..4266975865a6 100644 --- a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/pet.service.ts @@ -208,7 +208,6 @@ export class PetService { return this.httpClient.request("delete", `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -270,7 +269,6 @@ export class PetService { return this.httpClient.request>("get", `${this.configuration.basePath}/pet/findByStatus`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -334,7 +332,6 @@ export class PetService { return this.httpClient.request>("get", `${this.configuration.basePath}/pet/findByTags`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -391,7 +388,6 @@ export class PetService { return this.httpClient.request("get", `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/store.service.ts b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/store.service.ts index d010f8814d9e..f85006e6d986 100644 --- a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/store.service.ts @@ -121,7 +121,6 @@ export class StoreService { return this.httpClient.request("delete", `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -172,7 +171,6 @@ export class StoreService { return this.httpClient.request<{ [key: string]: number; }>("get", `${this.configuration.basePath}/store/inventory`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -221,7 +219,6 @@ export class StoreService { return this.httpClient.request("get", `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/user.service.ts b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/user.service.ts index fa1be0673bc3..6d58b323fb3b 100644 --- a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/user.service.ts @@ -284,7 +284,6 @@ export class UserService { return this.httpClient.request("delete", `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -332,7 +331,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, @@ -394,7 +392,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/login`, { - body: null, params: queryParameters, responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -437,7 +434,6 @@ export class UserService { return this.httpClient.request("get", `${this.configuration.basePath}/user/logout`, { - body: null, responseType: responseType, withCredentials: this.configuration.withCredentials, headers: headers, From 8b85dcafa2d7b82a4783872faf36f8f31e779d9f Mon Sep 17 00:00:00 2001 From: Dario Simone Date: Sun, 15 Nov 2020 14:44:24 +0100 Subject: [PATCH 4/4] use single-quotes for consistency with the rest of the generated code --- .../typescript-angular/api.service.mustache | 2 +- .../builds/default/api/pet.service.ts | 16 ++++++++-------- .../builds/default/api/store.service.ts | 8 ++++---- .../builds/default/api/user.service.ts | 16 ++++++++-------- .../builds/with-npm/api/pet.service.ts | 16 ++++++++-------- .../builds/with-npm/api/store.service.ts | 8 ++++---- .../builds/with-npm/api/user.service.ts | 16 ++++++++-------- .../builds/default/api/pet.service.ts | 16 ++++++++-------- .../builds/default/api/store.service.ts | 8 ++++---- .../builds/default/api/user.service.ts | 16 ++++++++-------- .../builds/with-npm/api/pet.service.ts | 16 ++++++++-------- .../builds/with-npm/api/store.service.ts | 8 ++++---- .../builds/with-npm/api/user.service.ts | 16 ++++++++-------- .../builds/default/api/pet.service.ts | 16 ++++++++-------- .../builds/default/api/store.service.ts | 8 ++++---- .../builds/default/api/user.service.ts | 16 ++++++++-------- .../builds/with-npm/api/pet.service.ts | 16 ++++++++-------- .../builds/with-npm/api/store.service.ts | 8 ++++---- .../builds/with-npm/api/user.service.ts | 16 ++++++++-------- .../builds/default/api/pet.service.ts | 16 ++++++++-------- .../builds/default/api/store.service.ts | 8 ++++---- .../builds/default/api/user.service.ts | 16 ++++++++-------- .../builds/with-npm/api/pet.service.ts | 16 ++++++++-------- .../builds/with-npm/api/store.service.ts | 8 ++++---- .../builds/with-npm/api/user.service.ts | 16 ++++++++-------- .../builds/default/api/pet.service.ts | 16 ++++++++-------- .../builds/default/api/store.service.ts | 8 ++++---- .../builds/default/api/user.service.ts | 16 ++++++++-------- .../builds/with-npm/api/pet.service.ts | 16 ++++++++-------- .../builds/with-npm/api/store.service.ts | 8 ++++---- .../builds/with-npm/api/user.service.ts | 16 ++++++++-------- .../single-request-parameter/api/pet.service.ts | 16 ++++++++-------- .../api/store.service.ts | 8 ++++---- .../single-request-parameter/api/user.service.ts | 16 ++++++++-------- .../builds/with-npm/api/pet.service.ts | 16 ++++++++-------- .../builds/with-npm/api/store.service.ts | 8 ++++---- .../builds/with-npm/api/user.service.ts | 16 ++++++++-------- .../with-prefixed-module-name/api/pet.service.ts | 16 ++++++++-------- .../api/store.service.ts | 8 ++++---- .../api/user.service.ts | 16 ++++++++-------- .../builds/default/api/pet.service.ts | 16 ++++++++-------- .../builds/default/api/store.service.ts | 8 ++++---- .../builds/default/api/user.service.ts | 16 ++++++++-------- .../builds/with-npm/api/pet.service.ts | 16 ++++++++-------- .../builds/with-npm/api/store.service.ts | 8 ++++---- .../builds/with-npm/api/user.service.ts | 16 ++++++++-------- 46 files changed, 301 insertions(+), 301 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/typescript-angular/api.service.mustache b/modules/openapi-generator/src/main/resources/typescript-angular/api.service.mustache index 623df08e6dd2..8d3e07949f5e 100644 --- a/modules/openapi-generator/src/main/resources/typescript-angular/api.service.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-angular/api.service.mustache @@ -334,7 +334,7 @@ export class {{classname}} { } {{/isResponseFile}} - return this.httpClient.request{{^isResponseFile}}<{{#returnType}}{{{returnType}}}{{#isResponseTypeFile}}|undefined{{/isResponseTypeFile}}{{/returnType}}{{^returnType}}any{{/returnType}}>{{/isResponseFile}}("{{httpMethod}}", + return this.httpClient.request{{^isResponseFile}}<{{#returnType}}{{{returnType}}}{{#isResponseTypeFile}}|undefined{{/isResponseTypeFile}}{{/returnType}}{{^returnType}}any{{/returnType}}>{{/isResponseFile}}('{{httpMethod}}', `${this.configuration.basePath}{{{path}}}`, { {{#hasBodyParam}} diff --git a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/pet.service.ts b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/pet.service.ts index 4266975865a6..0c3bc22a4f25 100644 --- a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/pet.service.ts @@ -148,7 +148,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet`, { body: body, @@ -205,7 +205,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { responseType: responseType, @@ -266,7 +266,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request>("get", + return this.httpClient.request>('get', `${this.configuration.basePath}/pet/findByStatus`, { params: queryParameters, @@ -329,7 +329,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request>("get", + return this.httpClient.request>('get', `${this.configuration.basePath}/pet/findByTags`, { params: queryParameters, @@ -385,7 +385,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { responseType: responseType, @@ -447,7 +447,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("put", + return this.httpClient.request('put', `${this.configuration.basePath}/pet`, { body: body, @@ -524,7 +524,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { body: convertFormParamsToString ? formParams.toString() : formParams, @@ -605,7 +605,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, { body: convertFormParamsToString ? formParams.toString() : formParams, diff --git a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/store.service.ts b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/store.service.ts index f85006e6d986..ef2a1d848b03 100644 --- a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/store.service.ts @@ -118,7 +118,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { responseType: responseType, @@ -168,7 +168,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request<{ [key: string]: number; }>("get", + return this.httpClient.request<{ [key: string]: number; }>('get', `${this.configuration.basePath}/store/inventory`, { responseType: responseType, @@ -216,7 +216,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { responseType: responseType, @@ -271,7 +271,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/store/order`, { body: body, diff --git a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/user.service.ts b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/user.service.ts index 6d58b323fb3b..9cd1a2482604 100644 --- a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/api/user.service.ts @@ -126,7 +126,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user`, { body: body, @@ -180,7 +180,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user/createWithArray`, { body: body, @@ -234,7 +234,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user/createWithList`, { body: body, @@ -281,7 +281,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { responseType: responseType, @@ -328,7 +328,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { responseType: responseType, @@ -389,7 +389,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/login`, { params: queryParameters, @@ -431,7 +431,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/logout`, { responseType: responseType, @@ -489,7 +489,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("put", + return this.httpClient.request('put', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { body: body, diff --git a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/pet.service.ts b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/pet.service.ts index 4266975865a6..0c3bc22a4f25 100644 --- a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/pet.service.ts @@ -148,7 +148,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet`, { body: body, @@ -205,7 +205,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { responseType: responseType, @@ -266,7 +266,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request>("get", + return this.httpClient.request>('get', `${this.configuration.basePath}/pet/findByStatus`, { params: queryParameters, @@ -329,7 +329,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request>("get", + return this.httpClient.request>('get', `${this.configuration.basePath}/pet/findByTags`, { params: queryParameters, @@ -385,7 +385,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { responseType: responseType, @@ -447,7 +447,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("put", + return this.httpClient.request('put', `${this.configuration.basePath}/pet`, { body: body, @@ -524,7 +524,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { body: convertFormParamsToString ? formParams.toString() : formParams, @@ -605,7 +605,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, { body: convertFormParamsToString ? formParams.toString() : formParams, diff --git a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/store.service.ts b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/store.service.ts index f85006e6d986..ef2a1d848b03 100644 --- a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/store.service.ts @@ -118,7 +118,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { responseType: responseType, @@ -168,7 +168,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request<{ [key: string]: number; }>("get", + return this.httpClient.request<{ [key: string]: number; }>('get', `${this.configuration.basePath}/store/inventory`, { responseType: responseType, @@ -216,7 +216,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { responseType: responseType, @@ -271,7 +271,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/store/order`, { body: body, diff --git a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/user.service.ts b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/user.service.ts index 6d58b323fb3b..9cd1a2482604 100644 --- a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/api/user.service.ts @@ -126,7 +126,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user`, { body: body, @@ -180,7 +180,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user/createWithArray`, { body: body, @@ -234,7 +234,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user/createWithList`, { body: body, @@ -281,7 +281,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { responseType: responseType, @@ -328,7 +328,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { responseType: responseType, @@ -389,7 +389,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/login`, { params: queryParameters, @@ -431,7 +431,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/logout`, { responseType: responseType, @@ -489,7 +489,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("put", + return this.httpClient.request('put', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { body: body, diff --git a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/pet.service.ts b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/pet.service.ts index 29e91f7e11d8..53b471535391 100644 --- a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/pet.service.ts @@ -146,7 +146,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet`, { body: body, @@ -203,7 +203,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { responseType: responseType, @@ -264,7 +264,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request>("get", + return this.httpClient.request>('get', `${this.configuration.basePath}/pet/findByStatus`, { params: queryParameters, @@ -327,7 +327,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request>("get", + return this.httpClient.request>('get', `${this.configuration.basePath}/pet/findByTags`, { params: queryParameters, @@ -383,7 +383,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { responseType: responseType, @@ -445,7 +445,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("put", + return this.httpClient.request('put', `${this.configuration.basePath}/pet`, { body: body, @@ -522,7 +522,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { body: convertFormParamsToString ? formParams.toString() : formParams, @@ -603,7 +603,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, { body: convertFormParamsToString ? formParams.toString() : formParams, diff --git a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/store.service.ts b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/store.service.ts index fde7b89e62ab..e652b176b147 100644 --- a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/store.service.ts @@ -116,7 +116,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { responseType: responseType, @@ -166,7 +166,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request<{ [key: string]: number; }>("get", + return this.httpClient.request<{ [key: string]: number; }>('get', `${this.configuration.basePath}/store/inventory`, { responseType: responseType, @@ -214,7 +214,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { responseType: responseType, @@ -269,7 +269,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/store/order`, { body: body, diff --git a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/user.service.ts b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/user.service.ts index 1e40238c2e86..93b8aa396d41 100644 --- a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/user.service.ts @@ -124,7 +124,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user`, { body: body, @@ -178,7 +178,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user/createWithArray`, { body: body, @@ -232,7 +232,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user/createWithList`, { body: body, @@ -279,7 +279,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { responseType: responseType, @@ -326,7 +326,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { responseType: responseType, @@ -387,7 +387,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/login`, { params: queryParameters, @@ -429,7 +429,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/logout`, { responseType: responseType, @@ -487,7 +487,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("put", + return this.httpClient.request('put', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { body: body, diff --git a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/pet.service.ts b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/pet.service.ts index 29e91f7e11d8..53b471535391 100644 --- a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/pet.service.ts @@ -146,7 +146,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet`, { body: body, @@ -203,7 +203,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { responseType: responseType, @@ -264,7 +264,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request>("get", + return this.httpClient.request>('get', `${this.configuration.basePath}/pet/findByStatus`, { params: queryParameters, @@ -327,7 +327,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request>("get", + return this.httpClient.request>('get', `${this.configuration.basePath}/pet/findByTags`, { params: queryParameters, @@ -383,7 +383,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { responseType: responseType, @@ -445,7 +445,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("put", + return this.httpClient.request('put', `${this.configuration.basePath}/pet`, { body: body, @@ -522,7 +522,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { body: convertFormParamsToString ? formParams.toString() : formParams, @@ -603,7 +603,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, { body: convertFormParamsToString ? formParams.toString() : formParams, diff --git a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/store.service.ts b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/store.service.ts index fde7b89e62ab..e652b176b147 100644 --- a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/store.service.ts @@ -116,7 +116,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { responseType: responseType, @@ -166,7 +166,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request<{ [key: string]: number; }>("get", + return this.httpClient.request<{ [key: string]: number; }>('get', `${this.configuration.basePath}/store/inventory`, { responseType: responseType, @@ -214,7 +214,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { responseType: responseType, @@ -269,7 +269,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/store/order`, { body: body, diff --git a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/user.service.ts b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/user.service.ts index 1e40238c2e86..93b8aa396d41 100644 --- a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/user.service.ts @@ -124,7 +124,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user`, { body: body, @@ -178,7 +178,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user/createWithArray`, { body: body, @@ -232,7 +232,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user/createWithList`, { body: body, @@ -279,7 +279,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { responseType: responseType, @@ -326,7 +326,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { responseType: responseType, @@ -387,7 +387,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/login`, { params: queryParameters, @@ -429,7 +429,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/logout`, { responseType: responseType, @@ -487,7 +487,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("put", + return this.httpClient.request('put', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { body: body, diff --git a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/pet.service.ts b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/pet.service.ts index 4266975865a6..0c3bc22a4f25 100644 --- a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/pet.service.ts @@ -148,7 +148,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet`, { body: body, @@ -205,7 +205,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { responseType: responseType, @@ -266,7 +266,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request>("get", + return this.httpClient.request>('get', `${this.configuration.basePath}/pet/findByStatus`, { params: queryParameters, @@ -329,7 +329,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request>("get", + return this.httpClient.request>('get', `${this.configuration.basePath}/pet/findByTags`, { params: queryParameters, @@ -385,7 +385,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { responseType: responseType, @@ -447,7 +447,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("put", + return this.httpClient.request('put', `${this.configuration.basePath}/pet`, { body: body, @@ -524,7 +524,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { body: convertFormParamsToString ? formParams.toString() : formParams, @@ -605,7 +605,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, { body: convertFormParamsToString ? formParams.toString() : formParams, diff --git a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/store.service.ts b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/store.service.ts index f85006e6d986..ef2a1d848b03 100644 --- a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/store.service.ts @@ -118,7 +118,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { responseType: responseType, @@ -168,7 +168,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request<{ [key: string]: number; }>("get", + return this.httpClient.request<{ [key: string]: number; }>('get', `${this.configuration.basePath}/store/inventory`, { responseType: responseType, @@ -216,7 +216,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { responseType: responseType, @@ -271,7 +271,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/store/order`, { body: body, diff --git a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/user.service.ts b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/user.service.ts index 6d58b323fb3b..9cd1a2482604 100644 --- a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/user.service.ts @@ -126,7 +126,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user`, { body: body, @@ -180,7 +180,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user/createWithArray`, { body: body, @@ -234,7 +234,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user/createWithList`, { body: body, @@ -281,7 +281,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { responseType: responseType, @@ -328,7 +328,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { responseType: responseType, @@ -389,7 +389,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/login`, { params: queryParameters, @@ -431,7 +431,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/logout`, { responseType: responseType, @@ -489,7 +489,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("put", + return this.httpClient.request('put', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { body: body, diff --git a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/pet.service.ts b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/pet.service.ts index 4266975865a6..0c3bc22a4f25 100644 --- a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/pet.service.ts @@ -148,7 +148,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet`, { body: body, @@ -205,7 +205,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { responseType: responseType, @@ -266,7 +266,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request>("get", + return this.httpClient.request>('get', `${this.configuration.basePath}/pet/findByStatus`, { params: queryParameters, @@ -329,7 +329,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request>("get", + return this.httpClient.request>('get', `${this.configuration.basePath}/pet/findByTags`, { params: queryParameters, @@ -385,7 +385,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { responseType: responseType, @@ -447,7 +447,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("put", + return this.httpClient.request('put', `${this.configuration.basePath}/pet`, { body: body, @@ -524,7 +524,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { body: convertFormParamsToString ? formParams.toString() : formParams, @@ -605,7 +605,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, { body: convertFormParamsToString ? formParams.toString() : formParams, diff --git a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/store.service.ts b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/store.service.ts index f85006e6d986..ef2a1d848b03 100644 --- a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/store.service.ts @@ -118,7 +118,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { responseType: responseType, @@ -168,7 +168,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request<{ [key: string]: number; }>("get", + return this.httpClient.request<{ [key: string]: number; }>('get', `${this.configuration.basePath}/store/inventory`, { responseType: responseType, @@ -216,7 +216,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { responseType: responseType, @@ -271,7 +271,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/store/order`, { body: body, diff --git a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/user.service.ts b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/user.service.ts index 6d58b323fb3b..9cd1a2482604 100644 --- a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/user.service.ts @@ -126,7 +126,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user`, { body: body, @@ -180,7 +180,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user/createWithArray`, { body: body, @@ -234,7 +234,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user/createWithList`, { body: body, @@ -281,7 +281,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { responseType: responseType, @@ -328,7 +328,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { responseType: responseType, @@ -389,7 +389,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/login`, { params: queryParameters, @@ -431,7 +431,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/logout`, { responseType: responseType, @@ -489,7 +489,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("put", + return this.httpClient.request('put', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { body: body, diff --git a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/pet.service.ts b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/pet.service.ts index 29e91f7e11d8..53b471535391 100644 --- a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/pet.service.ts @@ -146,7 +146,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet`, { body: body, @@ -203,7 +203,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { responseType: responseType, @@ -264,7 +264,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request>("get", + return this.httpClient.request>('get', `${this.configuration.basePath}/pet/findByStatus`, { params: queryParameters, @@ -327,7 +327,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request>("get", + return this.httpClient.request>('get', `${this.configuration.basePath}/pet/findByTags`, { params: queryParameters, @@ -383,7 +383,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { responseType: responseType, @@ -445,7 +445,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("put", + return this.httpClient.request('put', `${this.configuration.basePath}/pet`, { body: body, @@ -522,7 +522,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { body: convertFormParamsToString ? formParams.toString() : formParams, @@ -603,7 +603,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, { body: convertFormParamsToString ? formParams.toString() : formParams, diff --git a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/store.service.ts b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/store.service.ts index fde7b89e62ab..e652b176b147 100644 --- a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/store.service.ts @@ -116,7 +116,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { responseType: responseType, @@ -166,7 +166,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request<{ [key: string]: number; }>("get", + return this.httpClient.request<{ [key: string]: number; }>('get', `${this.configuration.basePath}/store/inventory`, { responseType: responseType, @@ -214,7 +214,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { responseType: responseType, @@ -269,7 +269,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/store/order`, { body: body, diff --git a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/user.service.ts b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/user.service.ts index 1e40238c2e86..93b8aa396d41 100644 --- a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/user.service.ts @@ -124,7 +124,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user`, { body: body, @@ -178,7 +178,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user/createWithArray`, { body: body, @@ -232,7 +232,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user/createWithList`, { body: body, @@ -279,7 +279,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { responseType: responseType, @@ -326,7 +326,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { responseType: responseType, @@ -387,7 +387,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/login`, { params: queryParameters, @@ -429,7 +429,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/logout`, { responseType: responseType, @@ -487,7 +487,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("put", + return this.httpClient.request('put', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { body: body, diff --git a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/pet.service.ts b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/pet.service.ts index 29e91f7e11d8..53b471535391 100644 --- a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/pet.service.ts @@ -146,7 +146,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet`, { body: body, @@ -203,7 +203,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { responseType: responseType, @@ -264,7 +264,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request>("get", + return this.httpClient.request>('get', `${this.configuration.basePath}/pet/findByStatus`, { params: queryParameters, @@ -327,7 +327,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request>("get", + return this.httpClient.request>('get', `${this.configuration.basePath}/pet/findByTags`, { params: queryParameters, @@ -383,7 +383,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { responseType: responseType, @@ -445,7 +445,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("put", + return this.httpClient.request('put', `${this.configuration.basePath}/pet`, { body: body, @@ -522,7 +522,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { body: convertFormParamsToString ? formParams.toString() : formParams, @@ -603,7 +603,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, { body: convertFormParamsToString ? formParams.toString() : formParams, diff --git a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/store.service.ts b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/store.service.ts index fde7b89e62ab..e652b176b147 100644 --- a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/store.service.ts @@ -116,7 +116,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { responseType: responseType, @@ -166,7 +166,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request<{ [key: string]: number; }>("get", + return this.httpClient.request<{ [key: string]: number; }>('get', `${this.configuration.basePath}/store/inventory`, { responseType: responseType, @@ -214,7 +214,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { responseType: responseType, @@ -269,7 +269,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/store/order`, { body: body, diff --git a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/user.service.ts b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/user.service.ts index 1e40238c2e86..93b8aa396d41 100644 --- a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/user.service.ts @@ -124,7 +124,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user`, { body: body, @@ -178,7 +178,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user/createWithArray`, { body: body, @@ -232,7 +232,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user/createWithList`, { body: body, @@ -279,7 +279,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { responseType: responseType, @@ -326,7 +326,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { responseType: responseType, @@ -387,7 +387,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/login`, { params: queryParameters, @@ -429,7 +429,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/logout`, { responseType: responseType, @@ -487,7 +487,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("put", + return this.httpClient.request('put', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { body: body, diff --git a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/pet.service.ts b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/pet.service.ts index 4266975865a6..0c3bc22a4f25 100644 --- a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/pet.service.ts @@ -148,7 +148,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet`, { body: body, @@ -205,7 +205,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { responseType: responseType, @@ -266,7 +266,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request>("get", + return this.httpClient.request>('get', `${this.configuration.basePath}/pet/findByStatus`, { params: queryParameters, @@ -329,7 +329,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request>("get", + return this.httpClient.request>('get', `${this.configuration.basePath}/pet/findByTags`, { params: queryParameters, @@ -385,7 +385,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { responseType: responseType, @@ -447,7 +447,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("put", + return this.httpClient.request('put', `${this.configuration.basePath}/pet`, { body: body, @@ -524,7 +524,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { body: convertFormParamsToString ? formParams.toString() : formParams, @@ -605,7 +605,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, { body: convertFormParamsToString ? formParams.toString() : formParams, diff --git a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/store.service.ts b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/store.service.ts index f85006e6d986..ef2a1d848b03 100644 --- a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/store.service.ts @@ -118,7 +118,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { responseType: responseType, @@ -168,7 +168,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request<{ [key: string]: number; }>("get", + return this.httpClient.request<{ [key: string]: number; }>('get', `${this.configuration.basePath}/store/inventory`, { responseType: responseType, @@ -216,7 +216,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { responseType: responseType, @@ -271,7 +271,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/store/order`, { body: body, diff --git a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/user.service.ts b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/user.service.ts index 6d58b323fb3b..9cd1a2482604 100644 --- a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/user.service.ts @@ -126,7 +126,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user`, { body: body, @@ -180,7 +180,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user/createWithArray`, { body: body, @@ -234,7 +234,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user/createWithList`, { body: body, @@ -281,7 +281,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { responseType: responseType, @@ -328,7 +328,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { responseType: responseType, @@ -389,7 +389,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/login`, { params: queryParameters, @@ -431,7 +431,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/logout`, { responseType: responseType, @@ -489,7 +489,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("put", + return this.httpClient.request('put', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { body: body, diff --git a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/pet.service.ts b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/pet.service.ts index 4266975865a6..0c3bc22a4f25 100644 --- a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/pet.service.ts @@ -148,7 +148,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet`, { body: body, @@ -205,7 +205,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { responseType: responseType, @@ -266,7 +266,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request>("get", + return this.httpClient.request>('get', `${this.configuration.basePath}/pet/findByStatus`, { params: queryParameters, @@ -329,7 +329,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request>("get", + return this.httpClient.request>('get', `${this.configuration.basePath}/pet/findByTags`, { params: queryParameters, @@ -385,7 +385,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { responseType: responseType, @@ -447,7 +447,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("put", + return this.httpClient.request('put', `${this.configuration.basePath}/pet`, { body: body, @@ -524,7 +524,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { body: convertFormParamsToString ? formParams.toString() : formParams, @@ -605,7 +605,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, { body: convertFormParamsToString ? formParams.toString() : formParams, diff --git a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/store.service.ts b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/store.service.ts index f85006e6d986..ef2a1d848b03 100644 --- a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/store.service.ts @@ -118,7 +118,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { responseType: responseType, @@ -168,7 +168,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request<{ [key: string]: number; }>("get", + return this.httpClient.request<{ [key: string]: number; }>('get', `${this.configuration.basePath}/store/inventory`, { responseType: responseType, @@ -216,7 +216,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { responseType: responseType, @@ -271,7 +271,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/store/order`, { body: body, diff --git a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/user.service.ts b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/user.service.ts index 6d58b323fb3b..9cd1a2482604 100644 --- a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/user.service.ts @@ -126,7 +126,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user`, { body: body, @@ -180,7 +180,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user/createWithArray`, { body: body, @@ -234,7 +234,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user/createWithList`, { body: body, @@ -281,7 +281,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { responseType: responseType, @@ -328,7 +328,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { responseType: responseType, @@ -389,7 +389,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/login`, { params: queryParameters, @@ -431,7 +431,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/logout`, { responseType: responseType, @@ -489,7 +489,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("put", + return this.httpClient.request('put', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { body: body, diff --git a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/pet.service.ts b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/pet.service.ts index f6be0672446e..d0cc48f9166d 100644 --- a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/pet.service.ts @@ -198,7 +198,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet`, { body: body, @@ -256,7 +256,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { responseType: responseType, @@ -318,7 +318,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request>("get", + return this.httpClient.request>('get', `${this.configuration.basePath}/pet/findByStatus`, { params: queryParameters, @@ -382,7 +382,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request>("get", + return this.httpClient.request>('get', `${this.configuration.basePath}/pet/findByTags`, { params: queryParameters, @@ -439,7 +439,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { responseType: responseType, @@ -502,7 +502,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("put", + return this.httpClient.request('put', `${this.configuration.basePath}/pet`, { body: body, @@ -580,7 +580,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { body: convertFormParamsToString ? formParams.toString() : formParams, @@ -662,7 +662,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, { body: convertFormParamsToString ? formParams.toString() : formParams, diff --git a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/store.service.ts b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/store.service.ts index a9fb744b0e06..248ae3aa7075 100644 --- a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/store.service.ts @@ -134,7 +134,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { responseType: responseType, @@ -184,7 +184,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request<{ [key: string]: number; }>("get", + return this.httpClient.request<{ [key: string]: number; }>('get', `${this.configuration.basePath}/store/inventory`, { responseType: responseType, @@ -233,7 +233,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { responseType: responseType, @@ -289,7 +289,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/store/order`, { body: body, diff --git a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/user.service.ts b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/user.service.ts index 39323845c749..577cc39f2bae 100644 --- a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/api/user.service.ts @@ -166,7 +166,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user`, { body: body, @@ -221,7 +221,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user/createWithArray`, { body: body, @@ -276,7 +276,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user/createWithList`, { body: body, @@ -324,7 +324,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { responseType: responseType, @@ -372,7 +372,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { responseType: responseType, @@ -434,7 +434,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/login`, { params: queryParameters, @@ -476,7 +476,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/logout`, { responseType: responseType, @@ -535,7 +535,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("put", + return this.httpClient.request('put', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { body: body, diff --git a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/pet.service.ts b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/pet.service.ts index 4266975865a6..0c3bc22a4f25 100644 --- a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/pet.service.ts @@ -148,7 +148,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet`, { body: body, @@ -205,7 +205,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { responseType: responseType, @@ -266,7 +266,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request>("get", + return this.httpClient.request>('get', `${this.configuration.basePath}/pet/findByStatus`, { params: queryParameters, @@ -329,7 +329,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request>("get", + return this.httpClient.request>('get', `${this.configuration.basePath}/pet/findByTags`, { params: queryParameters, @@ -385,7 +385,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { responseType: responseType, @@ -447,7 +447,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("put", + return this.httpClient.request('put', `${this.configuration.basePath}/pet`, { body: body, @@ -524,7 +524,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { body: convertFormParamsToString ? formParams.toString() : formParams, @@ -605,7 +605,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, { body: convertFormParamsToString ? formParams.toString() : formParams, diff --git a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/store.service.ts b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/store.service.ts index f85006e6d986..ef2a1d848b03 100644 --- a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/store.service.ts @@ -118,7 +118,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { responseType: responseType, @@ -168,7 +168,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request<{ [key: string]: number; }>("get", + return this.httpClient.request<{ [key: string]: number; }>('get', `${this.configuration.basePath}/store/inventory`, { responseType: responseType, @@ -216,7 +216,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { responseType: responseType, @@ -271,7 +271,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/store/order`, { body: body, diff --git a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/user.service.ts b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/user.service.ts index 6d58b323fb3b..9cd1a2482604 100644 --- a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/api/user.service.ts @@ -126,7 +126,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user`, { body: body, @@ -180,7 +180,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user/createWithArray`, { body: body, @@ -234,7 +234,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user/createWithList`, { body: body, @@ -281,7 +281,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { responseType: responseType, @@ -328,7 +328,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { responseType: responseType, @@ -389,7 +389,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/login`, { params: queryParameters, @@ -431,7 +431,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/logout`, { responseType: responseType, @@ -489,7 +489,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("put", + return this.httpClient.request('put', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { body: body, diff --git a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/pet.service.ts b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/pet.service.ts index 4266975865a6..0c3bc22a4f25 100644 --- a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/pet.service.ts @@ -148,7 +148,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet`, { body: body, @@ -205,7 +205,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { responseType: responseType, @@ -266,7 +266,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request>("get", + return this.httpClient.request>('get', `${this.configuration.basePath}/pet/findByStatus`, { params: queryParameters, @@ -329,7 +329,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request>("get", + return this.httpClient.request>('get', `${this.configuration.basePath}/pet/findByTags`, { params: queryParameters, @@ -385,7 +385,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { responseType: responseType, @@ -447,7 +447,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("put", + return this.httpClient.request('put', `${this.configuration.basePath}/pet`, { body: body, @@ -524,7 +524,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { body: convertFormParamsToString ? formParams.toString() : formParams, @@ -605,7 +605,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, { body: convertFormParamsToString ? formParams.toString() : formParams, diff --git a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/store.service.ts b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/store.service.ts index f85006e6d986..ef2a1d848b03 100644 --- a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/store.service.ts @@ -118,7 +118,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { responseType: responseType, @@ -168,7 +168,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request<{ [key: string]: number; }>("get", + return this.httpClient.request<{ [key: string]: number; }>('get', `${this.configuration.basePath}/store/inventory`, { responseType: responseType, @@ -216,7 +216,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { responseType: responseType, @@ -271,7 +271,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/store/order`, { body: body, diff --git a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/user.service.ts b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/user.service.ts index 6d58b323fb3b..9cd1a2482604 100644 --- a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/api/user.service.ts @@ -126,7 +126,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user`, { body: body, @@ -180,7 +180,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user/createWithArray`, { body: body, @@ -234,7 +234,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user/createWithList`, { body: body, @@ -281,7 +281,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { responseType: responseType, @@ -328,7 +328,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { responseType: responseType, @@ -389,7 +389,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/login`, { params: queryParameters, @@ -431,7 +431,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/logout`, { responseType: responseType, @@ -489,7 +489,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("put", + return this.httpClient.request('put', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { body: body, diff --git a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/pet.service.ts b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/pet.service.ts index 4266975865a6..0c3bc22a4f25 100644 --- a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/pet.service.ts @@ -148,7 +148,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet`, { body: body, @@ -205,7 +205,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { responseType: responseType, @@ -266,7 +266,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request>("get", + return this.httpClient.request>('get', `${this.configuration.basePath}/pet/findByStatus`, { params: queryParameters, @@ -329,7 +329,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request>("get", + return this.httpClient.request>('get', `${this.configuration.basePath}/pet/findByTags`, { params: queryParameters, @@ -385,7 +385,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { responseType: responseType, @@ -447,7 +447,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("put", + return this.httpClient.request('put', `${this.configuration.basePath}/pet`, { body: body, @@ -524,7 +524,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { body: convertFormParamsToString ? formParams.toString() : formParams, @@ -605,7 +605,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, { body: convertFormParamsToString ? formParams.toString() : formParams, diff --git a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/store.service.ts b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/store.service.ts index f85006e6d986..ef2a1d848b03 100644 --- a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/store.service.ts @@ -118,7 +118,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { responseType: responseType, @@ -168,7 +168,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request<{ [key: string]: number; }>("get", + return this.httpClient.request<{ [key: string]: number; }>('get', `${this.configuration.basePath}/store/inventory`, { responseType: responseType, @@ -216,7 +216,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { responseType: responseType, @@ -271,7 +271,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/store/order`, { body: body, diff --git a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/user.service.ts b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/user.service.ts index 6d58b323fb3b..9cd1a2482604 100644 --- a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/api/user.service.ts @@ -126,7 +126,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user`, { body: body, @@ -180,7 +180,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user/createWithArray`, { body: body, @@ -234,7 +234,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user/createWithList`, { body: body, @@ -281,7 +281,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { responseType: responseType, @@ -328,7 +328,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { responseType: responseType, @@ -389,7 +389,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/login`, { params: queryParameters, @@ -431,7 +431,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/logout`, { responseType: responseType, @@ -489,7 +489,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("put", + return this.httpClient.request('put', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { body: body, diff --git a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/pet.service.ts b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/pet.service.ts index 4266975865a6..0c3bc22a4f25 100644 --- a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/pet.service.ts @@ -148,7 +148,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet`, { body: body, @@ -205,7 +205,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { responseType: responseType, @@ -266,7 +266,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request>("get", + return this.httpClient.request>('get', `${this.configuration.basePath}/pet/findByStatus`, { params: queryParameters, @@ -329,7 +329,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request>("get", + return this.httpClient.request>('get', `${this.configuration.basePath}/pet/findByTags`, { params: queryParameters, @@ -385,7 +385,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { responseType: responseType, @@ -447,7 +447,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("put", + return this.httpClient.request('put', `${this.configuration.basePath}/pet`, { body: body, @@ -524,7 +524,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`, { body: convertFormParamsToString ? formParams.toString() : formParams, @@ -605,7 +605,7 @@ export class PetService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`, { body: convertFormParamsToString ? formParams.toString() : formParams, diff --git a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/store.service.ts b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/store.service.ts index f85006e6d986..ef2a1d848b03 100644 --- a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/store.service.ts @@ -118,7 +118,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { responseType: responseType, @@ -168,7 +168,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request<{ [key: string]: number; }>("get", + return this.httpClient.request<{ [key: string]: number; }>('get', `${this.configuration.basePath}/store/inventory`, { responseType: responseType, @@ -216,7 +216,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`, { responseType: responseType, @@ -271,7 +271,7 @@ export class StoreService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/store/order`, { body: body, diff --git a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/user.service.ts b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/user.service.ts index 6d58b323fb3b..9cd1a2482604 100644 --- a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/api/user.service.ts @@ -126,7 +126,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user`, { body: body, @@ -180,7 +180,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user/createWithArray`, { body: body, @@ -234,7 +234,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("post", + return this.httpClient.request('post', `${this.configuration.basePath}/user/createWithList`, { body: body, @@ -281,7 +281,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("delete", + return this.httpClient.request('delete', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { responseType: responseType, @@ -328,7 +328,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { responseType: responseType, @@ -389,7 +389,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/login`, { params: queryParameters, @@ -431,7 +431,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("get", + return this.httpClient.request('get', `${this.configuration.basePath}/user/logout`, { responseType: responseType, @@ -489,7 +489,7 @@ export class UserService { responseType = 'text'; } - return this.httpClient.request("put", + return this.httpClient.request('put', `${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, { body: body,