endpoints / Class

EndpointInvoker

Decorators:@Injectable

Service responsible for endpoint invoking. All endpoints must be invoked through this service.

Notes

This service is abstract, with a default implementation HttpClientEndpointInvoker.

Methods

abstract

invoke()

Invokes an API endpoint as specified in the provided configuration.

Presentation
abstract invoke(config: EndpointInvokeConfig): Observable<T>;
Parameters
NameTypeDescription
config
EndpointInvokeConfig

contains all information for endpoint invoking.

Returns
Observable<T> -

observable response from the endpoint

Overload #1

Invokes an API endpoint as specified in the provided configuration.

Presentation
abstract invoke(config: EndpointInvokeConfig): Observable<T>;
Parameters
NameTypeDescription
config
EndpointInvokeConfig

contains all information for endpoint invoking.

Returns
Observable<T> -

observable response from the endpoint