@@ -328,60 +328,6 @@ export class PetService {
328
328
) ;
329
329
}
330
330
331
- /**
332
- * Lists all the Pets
333
- * Lists all the Pets
334
- * @param action Action type to be passed on to the get the Pets
335
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
336
- * @param reportProgress flag to report request and response progress.
337
- */
338
- public listPets ( observe ?: 'body' , reportProgress ?: boolean ) : Observable < Array < Pet > > ;
339
- public listPets ( observe ?: 'response' , reportProgress ?: boolean ) : Observable < HttpResponse < Array < Pet > > > ;
340
- public listPets ( observe ?: 'events' , reportProgress ?: boolean ) : Observable < HttpEvent < Array < Pet > > > ;
341
- public listPets ( observe : any = 'body' , reportProgress : boolean = false ) : Observable < any > {
342
-
343
- let action = 'list' ;
344
-
345
- let queryParameters = new HttpParams ( { encoder : new CustomHttpUrlEncodingCodec ( ) } ) ;
346
- if ( action !== undefined && action !== null ) {
347
- queryParameters = queryParameters . set ( 'action' , < any > action ) ;
348
- }
349
-
350
- let headers = this . defaultHeaders ;
351
-
352
- // authentication (petstore_auth) required
353
- if ( this . configuration . accessToken ) {
354
- const accessToken = typeof this . configuration . accessToken === 'function'
355
- ? this . configuration . accessToken ( )
356
- : this . configuration . accessToken ;
357
- headers = headers . set ( 'Authorization' , 'Bearer ' + accessToken ) ;
358
- }
359
-
360
- // to determine the Accept header
361
- let httpHeaderAccepts : string [ ] = [
362
- 'application/xml' ,
363
- 'application/json'
364
- ] ;
365
- const httpHeaderAcceptSelected : string | undefined = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ;
366
- if ( httpHeaderAcceptSelected != undefined ) {
367
- headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ;
368
- }
369
-
370
- // to determine the Content-Type header
371
- const consumes : string [ ] = [
372
- ] ;
373
-
374
- return this . httpClient . get < Array < Pet > > ( `${ this . basePath } /pet` ,
375
- {
376
- params : queryParameters ,
377
- withCredentials : this . configuration . withCredentials ,
378
- headers : headers ,
379
- observe : observe ,
380
- reportProgress : reportProgress
381
- }
382
- ) ;
383
- }
384
-
385
331
/**
386
332
* Update an existing pet
387
333
*
0 commit comments