backend/common/src/types.ts
This interface is an abstraction over Angular's HttpClient in order for all Blueriq related requests to flow through a singular type and to implement common behavior across endpoints. This allows users to hook into/adjust all Blueriq traffic by providing a custom implementation of this service, if Angular's HttpInterceptor's middleware is not otherwise suitable.
Methods |
Abstract get | |||||||||
get(path: string, options?: RequestOptions)
|
|||||||||
Type parameters :
|
|||||||||
Performs a GET request, optionally providing additional request options.
Parameters :
Returns :
Observable<Response<T>>
|
Abstract post | ||||||||||||
post(path: string, data?: any, options?: PostOptions)
|
||||||||||||
Type parameters :
|
||||||||||||
Performs a POST request, optionally providing the data to be sent as request body and additional request options.
Parameters :
Returns :
Observable<Response<T>>
|
Abstract toUrl | ||||||
toUrl(path: string)
|
||||||
Converts a path to a rooted or absolute URL.
Parameters :
Returns :
string
|