swagger-pack
Version:
test of swagger generated angular models/services and possibility to reuse them
24 lines (23 loc) • 709 B
TypeScript
import { HttpClient, HttpParams } from '@angular/common/http';
import { ApiConfiguration } from './api-configuration';
/**
* Base class for API services
*/
export declare class BaseService {
protected config: ApiConfiguration;
protected http: HttpClient;
constructor(config: ApiConfiguration, http: HttpClient);
private _rootUrl;
/**
* Returns the root url for API operations. If not set directly in this
* service, will fallback to ApiConfiguration.rootUrl.
*/
/**
* Sets the root URL for API operations in this service.
*/
rootUrl: string;
/**
* Creates a new `HttpParams` with the correct codec
*/
protected newParams(): HttpParams;
}