@granito/ngx-hal-client
Version:
A HAL client to be used in Angular projects
26 lines (25 loc) • 881 B
TypeScript
import { HttpClient } from '@angular/common/http';
import { Accessor } from './internal';
import * as i0 from "@angular/core";
/**
* This service is used to obtain API root accessors. It incapsulates
* {@link HttpClient}, which will be passed to all {@link Accessor}
* objects originating from this service, directly or indirectly.
*/
export declare class HalClientService {
private readonly httpClient;
/**
* @param httpClient Angular HTTP client
*/
constructor(httpClient: HttpClient);
/**
* Obtain an accessor for the API root entry point specified by the
* URI.
*
* @param uri the URI for the API root
* @returns an accessor for the API root
*/
root(uri: string): Accessor;
static ɵfac: i0.ɵɵFactoryDeclaration<HalClientService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<HalClientService>;
}