File

backend/common/src/types.ts

Description

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.

Index

Methods

Methods

Abstract get
get(path: string, options?: RequestOptions)
Type parameters :
  • T

Performs a GET request, optionally providing additional request options.

Parameters :
Name Type Optional
path string No
options RequestOptions Yes
Abstract post
post(path: string, data?: any, options?: PostOptions)
Type parameters :
  • T

Performs a POST request, optionally providing the data to be sent as request body and additional request options.

Parameters :
Name Type Optional
path string No
data any Yes
options PostOptions Yes
Abstract toUrl
toUrl(path: string)

Converts a path to a rooted or absolute URL.

Parameters :
Name Type Optional
path string No
Returns : string

result-matching ""

    No results matching ""