@@ -67,7 +67,7 @@ export class PetService {
6767
6868 // to determine the Accept header
6969 let httpHeaderAccepts : string [ ] = [
70- 'application/xml'
70+ 'application/xml' ,
7171 'application/json'
7272 ] ;
7373 const httpHeaderAcceptSelected : string | undefined = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ;
@@ -77,14 +77,13 @@ export class PetService {
7777
7878 // to determine the Content-Type header
7979 const consumes : string [ ] = [
80- 'application/json'
80+ 'application/json' ,
8181 'application/xml'
8282 ] ;
8383 const httpContentTypeSelected : string | undefined = this . configuration . selectHeaderContentType ( consumes ) ;
8484 if ( httpContentTypeSelected != undefined ) {
8585 headers [ 'Content-Type' ] = httpContentTypeSelected ;
8686 }
87-
8887 return this . httpClient . post < Pet > ( `${ this . basePath } /pet` ,
8988 pet ,
9089 {
@@ -111,7 +110,7 @@ export class PetService {
111110
112111 let headers = this . defaultHeaders ;
113112 if ( apiKey !== undefined && apiKey !== null ) {
114- headers [ 'api_key' ] String ( apiKey ) ;
113+ headers [ 'api_key' ] = String ( apiKey ) ;
115114 }
116115
117116 // authentication (petstore_auth) required
@@ -133,7 +132,6 @@ export class PetService {
133132 // to determine the Content-Type header
134133 const consumes : string [ ] = [
135134 ] ;
136-
137135 return this . httpClient . delete < any > ( `${ this . basePath } /pet/${ encodeURIComponent ( String ( petId ) ) } ` ,
138136 {
139137 withCredentials : this . configuration . withCredentials ,
@@ -172,7 +170,7 @@ export class PetService {
172170
173171 // to determine the Accept header
174172 let httpHeaderAccepts : string [ ] = [
175- 'application/xml'
173+ 'application/xml' ,
176174 'application/json'
177175 ] ;
178176 const httpHeaderAcceptSelected : string | undefined = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ;
@@ -183,7 +181,6 @@ export class PetService {
183181 // to determine the Content-Type header
184182 const consumes : string [ ] = [
185183 ] ;
186-
187184 return this . httpClient . get < Array < Pet > > ( `${ this . basePath } /pet/findByStatus` ,
188185 {
189186 params : queryParameters ,
@@ -223,7 +220,7 @@ export class PetService {
223220
224221 // to determine the Accept header
225222 let httpHeaderAccepts : string [ ] = [
226- 'application/xml'
223+ 'application/xml' ,
227224 'application/json'
228225 ] ;
229226 const httpHeaderAcceptSelected : string | undefined = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ;
@@ -234,7 +231,6 @@ export class PetService {
234231 // to determine the Content-Type header
235232 const consumes : string [ ] = [
236233 ] ;
237-
238234 return this . httpClient . get < Array < Pet > > ( `${ this . basePath } /pet/findByTags` ,
239235 {
240236 params : queryParameters ,
@@ -266,7 +262,7 @@ export class PetService {
266262
267263 // to determine the Accept header
268264 let httpHeaderAccepts : string [ ] = [
269- 'application/xml'
265+ 'application/xml' ,
270266 'application/json'
271267 ] ;
272268 const httpHeaderAcceptSelected : string | undefined = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ;
@@ -277,7 +273,6 @@ export class PetService {
277273 // to determine the Content-Type header
278274 const consumes : string [ ] = [
279275 ] ;
280-
281276 return this . httpClient . get < Pet > ( `${ this . basePath } /pet/${ encodeURIComponent ( String ( petId ) ) } ` ,
282277 {
283278 withCredentials : this . configuration . withCredentials ,
@@ -311,7 +306,7 @@ export class PetService {
311306
312307 // to determine the Accept header
313308 let httpHeaderAccepts : string [ ] = [
314- 'application/xml'
309+ 'application/xml' ,
315310 'application/json'
316311 ] ;
317312 const httpHeaderAcceptSelected : string | undefined = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ;
@@ -321,14 +316,13 @@ export class PetService {
321316
322317 // to determine the Content-Type header
323318 const consumes : string [ ] = [
324- 'application/json'
319+ 'application/json' ,
325320 'application/xml'
326321 ] ;
327322 const httpContentTypeSelected : string | undefined = this . configuration . selectHeaderContentType ( consumes ) ;
328323 if ( httpContentTypeSelected != undefined ) {
329324 headers [ 'Content-Type' ] = httpContentTypeSelected ;
330325 }
331-
332326 return this . httpClient . put < Pet > ( `${ this . basePath } /pet` ,
333327 pet ,
334328 {
@@ -392,6 +386,7 @@ export class PetService {
392386 if ( name !== undefined ) {
393387 formParams . append ( 'name' , < any > name ) ;
394388 }
389+
395390 if ( status !== undefined ) {
396391 formParams . append ( 'status' , < any > status ) ;
397392 }
@@ -451,6 +446,7 @@ export class PetService {
451446 let formParams : { append ( param : string , value : any ) : void ; } ;
452447 let useForm = false ;
453448 let convertFormParamsToString = false ;
449+
454450 // use FormData to transmit files using content-type "multipart/form-data"
455451 // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
456452 useForm = canConsumeForm ;
@@ -463,6 +459,7 @@ export class PetService {
463459 if ( additionalMetadata !== undefined ) {
464460 formParams . append ( 'additionalMetadata' , < any > additionalMetadata ) ;
465461 }
462+
466463 if ( file !== undefined ) {
467464 formParams . append ( 'file' , < any > file ) ;
468465 }
0 commit comments