forked from loafle/openapi-generator-original
[typescript-angular] Support text response types (#4617)
* [typescript-angular] responseType based on Accept header. * [typescript-angular] Generate sample client code. * [typescript-angular] Use in-line param to HttpClient. * [typescript-angular] Fix CI check. * [typescript-angular] Remove files introduced by running /bin/openapi3 scripts. * [typescript-angular] Apply suggestions from code review Co-Authored-By: Esteban Gehring <esteban.gehring@gmail.com> * [typescript-angular] Default responseType = 'json' * [typescript-angular] Fix potential NPE * [typescript-angular] Remove type checking on responseType. * [typescript-angular] Update samples.
This commit is contained in:
parent
acf081bc02
commit
cb31089664
@ -385,15 +385,25 @@ export class {{classname}} {
|
|||||||
|
|
||||||
{{/hasFormParams}}
|
{{/hasFormParams}}
|
||||||
{{#useHttpClient}}
|
{{#useHttpClient}}
|
||||||
|
{{^isResponseFile}}
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
|
{{/isResponseFile}}
|
||||||
return this.httpClient.{{httpMethod}}{{^isResponseFile}}<{{#returnType}}{{{returnType}}}{{#isResponseTypeFile}}|undefined{{/isResponseTypeFile}}{{/returnType}}{{^returnType}}any{{/returnType}}>{{/isResponseFile}}(`${this.configuration.basePath}{{{path}}}`,{{#isBodyAllowed}}
|
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}}
|
{{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}{{#hasFormParams}}convertFormParamsToString ? formParams.toString() : formParams{{/hasFormParams}}{{^hasFormParams}}null{{/hasFormParams}}{{/bodyParam}},{{/isBodyAllowed}}
|
||||||
{
|
{
|
||||||
{{#hasQueryParams}}
|
{{#hasQueryParams}}
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
{{/hasQueryParams}}
|
{{/hasQueryParams}}
|
||||||
{{#isResponseFile}}
|
{{#isResponseFile}}
|
||||||
responseType: "blob",
|
responseType: "blob",
|
||||||
{{/isResponseFile}}
|
{{/isResponseFile}}
|
||||||
|
{{^isResponseFile}}
|
||||||
|
responseType: <any>responseType,
|
||||||
|
{{/isResponseFile}}
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -414,6 +424,9 @@ export class {{classname}} {
|
|||||||
{{#isResponseFile}}
|
{{#isResponseFile}}
|
||||||
responseType: ResponseContentType.Blob,
|
responseType: ResponseContentType.Blob,
|
||||||
{{/isResponseFile}}
|
{{/isResponseFile}}
|
||||||
|
{{^isResponseFile}}
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
|
{{/isResponseFile}}
|
||||||
{{#hasQueryParams}}
|
{{#hasQueryParams}}
|
||||||
search: queryParameters,
|
search: queryParameters,
|
||||||
{{/hasQueryParams}}
|
{{/hasQueryParams}}
|
||||||
|
@ -246,6 +246,7 @@ export class PetService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -291,6 +292,7 @@ export class PetService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Delete,
|
method: RequestMethod.Delete,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -340,6 +342,7 @@ export class PetService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
search: queryParameters,
|
search: queryParameters,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
@ -390,6 +393,7 @@ export class PetService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
search: queryParameters,
|
search: queryParameters,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
@ -432,6 +436,7 @@ export class PetService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -484,6 +489,7 @@ export class PetService {
|
|||||||
method: RequestMethod.Put,
|
method: RequestMethod.Put,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -554,6 +560,7 @@ export class PetService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: convertFormParamsToString ? formParams.toString() : formParams,
|
body: convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -628,6 +635,7 @@ export class PetService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: convertFormParamsToString ? formParams.toString() : formParams,
|
body: convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
|
@ -140,6 +140,7 @@ export class StoreService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Delete,
|
method: RequestMethod.Delete,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -176,6 +177,7 @@ export class StoreService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -212,6 +214,7 @@ export class StoreService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -256,6 +259,7 @@ export class StoreService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
|
@ -219,6 +219,7 @@ export class UserService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -261,6 +262,7 @@ export class UserService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -303,6 +305,7 @@ export class UserService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -337,6 +340,7 @@ export class UserService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Delete,
|
method: RequestMethod.Delete,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -372,6 +376,7 @@ export class UserService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -419,6 +424,7 @@ export class UserService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
search: queryParameters,
|
search: queryParameters,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
@ -449,6 +455,7 @@ export class UserService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -496,6 +503,7 @@ export class UserService {
|
|||||||
method: RequestMethod.Put,
|
method: RequestMethod.Put,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
|
@ -246,6 +246,7 @@ export class PetService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -291,6 +292,7 @@ export class PetService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Delete,
|
method: RequestMethod.Delete,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -340,6 +342,7 @@ export class PetService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
search: queryParameters,
|
search: queryParameters,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
@ -390,6 +393,7 @@ export class PetService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
search: queryParameters,
|
search: queryParameters,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
@ -432,6 +436,7 @@ export class PetService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -484,6 +489,7 @@ export class PetService {
|
|||||||
method: RequestMethod.Put,
|
method: RequestMethod.Put,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -554,6 +560,7 @@ export class PetService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: convertFormParamsToString ? formParams.toString() : formParams,
|
body: convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -628,6 +635,7 @@ export class PetService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: convertFormParamsToString ? formParams.toString() : formParams,
|
body: convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
|
@ -140,6 +140,7 @@ export class StoreService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Delete,
|
method: RequestMethod.Delete,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -176,6 +177,7 @@ export class StoreService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -212,6 +214,7 @@ export class StoreService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -256,6 +259,7 @@ export class StoreService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
|
@ -219,6 +219,7 @@ export class UserService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -261,6 +262,7 @@ export class UserService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -303,6 +305,7 @@ export class UserService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -337,6 +340,7 @@ export class UserService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Delete,
|
method: RequestMethod.Delete,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -372,6 +376,7 @@ export class UserService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -419,6 +424,7 @@ export class UserService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
search: queryParameters,
|
search: queryParameters,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
@ -449,6 +455,7 @@ export class UserService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -496,6 +503,7 @@ export class UserService {
|
|||||||
method: RequestMethod.Put,
|
method: RequestMethod.Put,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
|
@ -249,6 +249,7 @@ export class PetService implements PetServiceInterface {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -294,6 +295,7 @@ export class PetService implements PetServiceInterface {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Delete,
|
method: RequestMethod.Delete,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -343,6 +345,7 @@ export class PetService implements PetServiceInterface {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
search: queryParameters,
|
search: queryParameters,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
@ -393,6 +396,7 @@ export class PetService implements PetServiceInterface {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
search: queryParameters,
|
search: queryParameters,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
@ -435,6 +439,7 @@ export class PetService implements PetServiceInterface {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -487,6 +492,7 @@ export class PetService implements PetServiceInterface {
|
|||||||
method: RequestMethod.Put,
|
method: RequestMethod.Put,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -557,6 +563,7 @@ export class PetService implements PetServiceInterface {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: convertFormParamsToString ? formParams.toString() : formParams,
|
body: convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -631,6 +638,7 @@ export class PetService implements PetServiceInterface {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: convertFormParamsToString ? formParams.toString() : formParams,
|
body: convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
|
@ -143,6 +143,7 @@ export class StoreService implements StoreServiceInterface {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Delete,
|
method: RequestMethod.Delete,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -179,6 +180,7 @@ export class StoreService implements StoreServiceInterface {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -215,6 +217,7 @@ export class StoreService implements StoreServiceInterface {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -259,6 +262,7 @@ export class StoreService implements StoreServiceInterface {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
|
@ -222,6 +222,7 @@ export class UserService implements UserServiceInterface {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -264,6 +265,7 @@ export class UserService implements UserServiceInterface {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -306,6 +308,7 @@ export class UserService implements UserServiceInterface {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -340,6 +343,7 @@ export class UserService implements UserServiceInterface {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Delete,
|
method: RequestMethod.Delete,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -375,6 +379,7 @@ export class UserService implements UserServiceInterface {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -422,6 +427,7 @@ export class UserService implements UserServiceInterface {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
search: queryParameters,
|
search: queryParameters,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
@ -452,6 +458,7 @@ export class UserService implements UserServiceInterface {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -499,6 +506,7 @@ export class UserService implements UserServiceInterface {
|
|||||||
method: RequestMethod.Put,
|
method: RequestMethod.Put,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
|
@ -104,9 +104,15 @@ export class PetService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -152,8 +158,14 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -203,9 +215,15 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
|
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -255,9 +273,15 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
|
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -299,8 +323,14 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -352,9 +382,15 @@ export class PetService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
|
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -420,9 +456,15 @@ export class PetService {
|
|||||||
formParams = formParams.append('status', <any>status) as any || formParams;
|
formParams = formParams.append('status', <any>status) as any || formParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
convertFormParamsToString ? formParams.toString() : formParams,
|
convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -492,9 +534,15 @@ export class PetService {
|
|||||||
formParams = formParams.append('file', <any>file) as any || formParams;
|
formParams = formParams.append('file', <any>file) as any || formParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
|
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
|
||||||
convertFormParamsToString ? formParams.toString() : formParams,
|
convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -73,8 +73,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -111,8 +117,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
|
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -149,8 +161,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -194,9 +212,15 @@ export class StoreService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
|
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -81,9 +81,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -125,9 +131,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -169,9 +181,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -206,8 +224,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -243,8 +267,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -292,9 +322,15 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
|
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -324,8 +360,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
|
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -372,9 +414,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -246,6 +246,7 @@ export class PetService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -291,6 +292,7 @@ export class PetService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Delete,
|
method: RequestMethod.Delete,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -340,6 +342,7 @@ export class PetService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
search: queryParameters,
|
search: queryParameters,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
@ -390,6 +393,7 @@ export class PetService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
search: queryParameters,
|
search: queryParameters,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
@ -432,6 +436,7 @@ export class PetService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -484,6 +489,7 @@ export class PetService {
|
|||||||
method: RequestMethod.Put,
|
method: RequestMethod.Put,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -554,6 +560,7 @@ export class PetService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: convertFormParamsToString ? formParams.toString() : formParams,
|
body: convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -628,6 +635,7 @@ export class PetService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: convertFormParamsToString ? formParams.toString() : formParams,
|
body: convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
|
@ -140,6 +140,7 @@ export class StoreService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Delete,
|
method: RequestMethod.Delete,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -176,6 +177,7 @@ export class StoreService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -212,6 +214,7 @@ export class StoreService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -256,6 +259,7 @@ export class StoreService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
|
@ -219,6 +219,7 @@ export class UserService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -261,6 +262,7 @@ export class UserService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -303,6 +305,7 @@ export class UserService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -337,6 +340,7 @@ export class UserService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Delete,
|
method: RequestMethod.Delete,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -372,6 +376,7 @@ export class UserService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -419,6 +424,7 @@ export class UserService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
search: queryParameters,
|
search: queryParameters,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
@ -449,6 +455,7 @@ export class UserService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
@ -496,6 +503,7 @@ export class UserService {
|
|||||||
method: RequestMethod.Put,
|
method: RequestMethod.Put,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
|
responseType: httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text') ? ResponseContentType.Text : ResponseContentType.Json,
|
||||||
withCredentials:this.configuration.withCredentials
|
withCredentials:this.configuration.withCredentials
|
||||||
});
|
});
|
||||||
// issues#4037
|
// issues#4037
|
||||||
|
@ -104,9 +104,15 @@ export class PetService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -152,8 +158,14 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -203,9 +215,15 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
|
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -255,9 +273,15 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
|
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -299,8 +323,14 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -352,9 +382,15 @@ export class PetService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
|
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -420,9 +456,15 @@ export class PetService {
|
|||||||
formParams = formParams.append('status', <any>status) as any || formParams;
|
formParams = formParams.append('status', <any>status) as any || formParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
convertFormParamsToString ? formParams.toString() : formParams,
|
convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -492,9 +534,15 @@ export class PetService {
|
|||||||
formParams = formParams.append('file', <any>file) as any || formParams;
|
formParams = formParams.append('file', <any>file) as any || formParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
|
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
|
||||||
convertFormParamsToString ? formParams.toString() : formParams,
|
convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -73,8 +73,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -111,8 +117,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
|
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -149,8 +161,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -194,9 +212,15 @@ export class StoreService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
|
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -81,9 +81,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -125,9 +131,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -169,9 +181,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -206,8 +224,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -243,8 +267,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -292,9 +322,15 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
|
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -324,8 +360,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
|
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -372,9 +414,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -104,9 +104,15 @@ export class PetService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -152,8 +158,14 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -203,9 +215,15 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
|
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -255,9 +273,15 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
|
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -299,8 +323,14 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -352,9 +382,15 @@ export class PetService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
|
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -420,9 +456,15 @@ export class PetService {
|
|||||||
formParams = formParams.append('status', <any>status) as any || formParams;
|
formParams = formParams.append('status', <any>status) as any || formParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
convertFormParamsToString ? formParams.toString() : formParams,
|
convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -492,9 +534,15 @@ export class PetService {
|
|||||||
formParams = formParams.append('file', <any>file) as any || formParams;
|
formParams = formParams.append('file', <any>file) as any || formParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
|
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
|
||||||
convertFormParamsToString ? formParams.toString() : formParams,
|
convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -73,8 +73,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -111,8 +117,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
|
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -149,8 +161,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -194,9 +212,15 @@ export class StoreService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
|
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -81,9 +81,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -125,9 +131,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -169,9 +181,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -206,8 +224,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -243,8 +267,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -292,9 +322,15 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
|
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -324,8 +360,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
|
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -372,9 +414,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -106,9 +106,15 @@ export class PetService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -154,8 +160,14 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -205,9 +217,15 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
|
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -257,9 +275,15 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
|
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -301,8 +325,14 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -354,9 +384,15 @@ export class PetService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
|
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -422,9 +458,15 @@ export class PetService {
|
|||||||
formParams = formParams.append('status', <any>status) as any || formParams;
|
formParams = formParams.append('status', <any>status) as any || formParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
convertFormParamsToString ? formParams.toString() : formParams,
|
convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -494,9 +536,15 @@ export class PetService {
|
|||||||
formParams = formParams.append('file', <any>file) as any || formParams;
|
formParams = formParams.append('file', <any>file) as any || formParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
|
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
|
||||||
convertFormParamsToString ? formParams.toString() : formParams,
|
convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -75,8 +75,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -113,8 +119,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
|
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -151,8 +163,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -196,9 +214,15 @@ export class StoreService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
|
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -83,9 +83,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -127,9 +133,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -171,9 +183,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -208,8 +226,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -245,8 +269,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -294,9 +324,15 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
|
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -326,8 +362,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
|
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -374,9 +416,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -106,9 +106,15 @@ export class PetService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -154,8 +160,14 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -205,9 +217,15 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
|
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -257,9 +275,15 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
|
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -301,8 +325,14 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -354,9 +384,15 @@ export class PetService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
|
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -422,9 +458,15 @@ export class PetService {
|
|||||||
formParams = formParams.append('status', <any>status) as any || formParams;
|
formParams = formParams.append('status', <any>status) as any || formParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
convertFormParamsToString ? formParams.toString() : formParams,
|
convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -494,9 +536,15 @@ export class PetService {
|
|||||||
formParams = formParams.append('file', <any>file) as any || formParams;
|
formParams = formParams.append('file', <any>file) as any || formParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
|
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
|
||||||
convertFormParamsToString ? formParams.toString() : formParams,
|
convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -75,8 +75,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -113,8 +119,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
|
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -151,8 +163,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -196,9 +214,15 @@ export class StoreService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
|
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -83,9 +83,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -127,9 +133,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -171,9 +183,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -208,8 +226,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -245,8 +269,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -294,9 +324,15 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
|
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -326,8 +362,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
|
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -374,9 +416,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -104,9 +104,15 @@ export class PetService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -152,8 +158,14 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -203,9 +215,15 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
|
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -255,9 +273,15 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
|
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -299,8 +323,14 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -352,9 +382,15 @@ export class PetService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
|
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -420,9 +456,15 @@ export class PetService {
|
|||||||
formParams = formParams.append('status', <any>status) as any || formParams;
|
formParams = formParams.append('status', <any>status) as any || formParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
convertFormParamsToString ? formParams.toString() : formParams,
|
convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -492,9 +534,15 @@ export class PetService {
|
|||||||
formParams = formParams.append('file', <any>file) as any || formParams;
|
formParams = formParams.append('file', <any>file) as any || formParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
|
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
|
||||||
convertFormParamsToString ? formParams.toString() : formParams,
|
convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -73,8 +73,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -111,8 +117,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
|
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -149,8 +161,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -194,9 +212,15 @@ export class StoreService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
|
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -81,9 +81,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -125,9 +131,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -169,9 +181,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -206,8 +224,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -243,8 +267,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -292,9 +322,15 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
|
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -324,8 +360,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
|
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -372,9 +414,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -104,9 +104,15 @@ export class PetService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -152,8 +158,14 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -203,9 +215,15 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
|
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -255,9 +273,15 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
|
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -299,8 +323,14 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -352,9 +382,15 @@ export class PetService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
|
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -420,9 +456,15 @@ export class PetService {
|
|||||||
formParams = formParams.append('status', <any>status) as any || formParams;
|
formParams = formParams.append('status', <any>status) as any || formParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
convertFormParamsToString ? formParams.toString() : formParams,
|
convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -492,9 +534,15 @@ export class PetService {
|
|||||||
formParams = formParams.append('file', <any>file) as any || formParams;
|
formParams = formParams.append('file', <any>file) as any || formParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
|
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
|
||||||
convertFormParamsToString ? formParams.toString() : formParams,
|
convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -73,8 +73,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -111,8 +117,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
|
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -149,8 +161,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -194,9 +212,15 @@ export class StoreService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
|
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -81,9 +81,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -125,9 +131,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -169,9 +181,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -206,8 +224,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -243,8 +267,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -292,9 +322,15 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
|
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -324,8 +360,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
|
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -372,9 +414,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -106,9 +106,15 @@ export class PetService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -154,8 +160,14 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -205,9 +217,15 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
|
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -257,9 +275,15 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
|
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -301,8 +325,14 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -354,9 +384,15 @@ export class PetService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
|
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -422,9 +458,15 @@ export class PetService {
|
|||||||
formParams = formParams.append('status', <any>status) as any || formParams;
|
formParams = formParams.append('status', <any>status) as any || formParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
convertFormParamsToString ? formParams.toString() : formParams,
|
convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -494,9 +536,15 @@ export class PetService {
|
|||||||
formParams = formParams.append('file', <any>file) as any || formParams;
|
formParams = formParams.append('file', <any>file) as any || formParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
|
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
|
||||||
convertFormParamsToString ? formParams.toString() : formParams,
|
convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -75,8 +75,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -113,8 +119,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
|
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -151,8 +163,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -196,9 +214,15 @@ export class StoreService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
|
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -83,9 +83,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -127,9 +133,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -171,9 +183,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -208,8 +226,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -245,8 +269,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -294,9 +324,15 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
|
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -326,8 +362,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
|
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -374,9 +416,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -106,9 +106,15 @@ export class PetService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -154,8 +160,14 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -205,9 +217,15 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
|
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -257,9 +275,15 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
|
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -301,8 +325,14 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -354,9 +384,15 @@ export class PetService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
|
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -422,9 +458,15 @@ export class PetService {
|
|||||||
formParams = formParams.append('status', <any>status) as any || formParams;
|
formParams = formParams.append('status', <any>status) as any || formParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
convertFormParamsToString ? formParams.toString() : formParams,
|
convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -494,9 +536,15 @@ export class PetService {
|
|||||||
formParams = formParams.append('file', <any>file) as any || formParams;
|
formParams = formParams.append('file', <any>file) as any || formParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
|
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
|
||||||
convertFormParamsToString ? formParams.toString() : formParams,
|
convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -75,8 +75,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -113,8 +119,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
|
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -151,8 +163,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -196,9 +214,15 @@ export class StoreService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
|
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -83,9 +83,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -127,9 +133,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -171,9 +183,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -208,8 +226,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -245,8 +269,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -294,9 +324,15 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
|
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -326,8 +362,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
|
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -374,9 +416,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -144,9 +144,15 @@ export class PetService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -193,8 +199,14 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -245,9 +257,15 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
|
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -298,9 +316,15 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
|
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -343,8 +367,14 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -397,9 +427,15 @@ export class PetService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
|
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -466,9 +502,15 @@ export class PetService {
|
|||||||
formParams = formParams.append('status', <any>status) as any || formParams;
|
formParams = formParams.append('status', <any>status) as any || formParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
convertFormParamsToString ? formParams.toString() : formParams,
|
convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -539,9 +581,15 @@ export class PetService {
|
|||||||
formParams = formParams.append('file', <any>file) as any || formParams;
|
formParams = formParams.append('file', <any>file) as any || formParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
|
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
|
||||||
convertFormParamsToString ? formParams.toString() : formParams,
|
convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -88,8 +88,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -126,8 +132,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
|
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -165,8 +177,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -211,9 +229,15 @@ export class StoreService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
|
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -114,9 +114,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -159,9 +165,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -204,9 +216,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -242,8 +260,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -280,8 +304,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -330,9 +360,15 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
|
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -362,8 +398,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
|
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -411,9 +453,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -106,9 +106,15 @@ export class PetService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -154,8 +160,14 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -205,9 +217,15 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
|
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -257,9 +275,15 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
|
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -301,8 +325,14 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -354,9 +384,15 @@ export class PetService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
|
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -422,9 +458,15 @@ export class PetService {
|
|||||||
formParams = formParams.append('status', <any>status) as any || formParams;
|
formParams = formParams.append('status', <any>status) as any || formParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
convertFormParamsToString ? formParams.toString() : formParams,
|
convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -494,9 +536,15 @@ export class PetService {
|
|||||||
formParams = formParams.append('file', <any>file) as any || formParams;
|
formParams = formParams.append('file', <any>file) as any || formParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
|
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
|
||||||
convertFormParamsToString ? formParams.toString() : formParams,
|
convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -75,8 +75,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -113,8 +119,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
|
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -151,8 +163,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -196,9 +214,15 @@ export class StoreService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
|
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -83,9 +83,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -127,9 +133,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -171,9 +183,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -208,8 +226,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -245,8 +269,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -294,9 +324,15 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
|
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -326,8 +362,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
|
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -374,9 +416,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -106,9 +106,15 @@ export class PetService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -154,8 +160,14 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -205,9 +217,15 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
|
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -257,9 +275,15 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
|
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -301,8 +325,14 @@ export class PetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -354,9 +384,15 @@ export class PetService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
|
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -422,9 +458,15 @@ export class PetService {
|
|||||||
formParams = formParams.append('status', <any>status) as any || formParams;
|
formParams = formParams.append('status', <any>status) as any || formParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
|
||||||
convertFormParamsToString ? formParams.toString() : formParams,
|
convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -494,9 +536,15 @@ export class PetService {
|
|||||||
formParams = formParams.append('file', <any>file) as any || formParams;
|
formParams = formParams.append('file', <any>file) as any || formParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
|
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
|
||||||
convertFormParamsToString ? formParams.toString() : formParams,
|
convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -75,8 +75,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -113,8 +119,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
|
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -151,8 +163,14 @@ export class StoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -196,9 +214,15 @@ export class StoreService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
|
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
@ -83,9 +83,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -127,9 +133,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -171,9 +183,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
|
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -208,8 +226,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -245,8 +269,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -294,9 +324,15 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
|
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -326,8 +362,14 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
|
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -374,9 +416,15 @@ export class UserService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let responseType: 'text' | 'json' = 'json';
|
||||||
|
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
|
||||||
body,
|
body,
|
||||||
{
|
{
|
||||||
|
responseType: <any>responseType,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user