Skip to content

Commit a8b36c1

Browse files
ralphdoefrantuma
authored andcommitted
samples updates - samples/client/petstore/typescript-angular-v4.3/
1 parent d9ab104 commit a8b36c1

File tree

1 file changed

+0
-54
lines changed

1 file changed

+0
-54
lines changed

samples/client/petstore/typescript-angular-v4.3/npm/api/pet.service.ts

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -328,60 +328,6 @@ export class PetService {
328328
);
329329
}
330330

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-
385331
/**
386332
* Update an existing pet
387333
*

0 commit comments

Comments
 (0)