RestClient
Defined in: clients/http-client/src/rest-client.ts:82
A JSON REST client bound to one vendor’s base URL and credentials.
Properties
Section titled “Properties”baseUrl
Section titled “baseUrl”
readonlybaseUrl:string
Defined in: clients/http-client/src/rest-client.ts:84
The base URL with any trailing slashes removed.
Methods
Section titled “Methods”request()
Section titled “request()”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.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<T>