Skip to content

RestClient

Defined in: clients/http-client/src/rest-client.ts:82

A JSON REST client bound to one vendor’s base URL and credentials.

readonly baseUrl: string

Defined in: clients/http-client/src/rest-client.ts:84

The base URL with any trailing slashes removed.

request<T>(path, opts?): Promise<T>

Defined in: clients/http-client/src/rest-client.ts:86

Sends a request to path and resolves with the parsed JSON body, or undefined for an empty or 204 response; rejects with a ProviderApiError.

T

string

RequestOptions

Promise<T>