ngx-restful
Version:
AngularX module for easy integration with RESTful API.
12 lines (11 loc) • 518 B
TypeScript
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
export declare abstract class BaseService {
protected http: HttpClient;
constructor(http: HttpClient);
get<E>(path: string, options?: Object): Observable<E>;
post<E>(path: string, body: any, options?: Object): Observable<E>;
put<E>(path: string, body: any, options?: Object): Observable<E>;
delete<E>(path: string, options?: Object): Observable<E>;
handleError(error: any): Observable<any>;
}