Type Parameters

Hierarchy

  • HttpProviderConfig

Properties

adapter?: AxiosAdapter

This adapter that allows to you to modify the way Axios make requests.

apiVersion: string

The OpenApi version, which forms part of the URL scheme

axiosOptions?: AxiosRequestConfig<any>

Additional request options passed to axios

baseUrl: string
logger: Logger

Logger strategy.

mapError?: ((error: unknown, method: keyof T) => unknown)

Type declaration

    • (error: unknown, method: keyof T): unknown
    • Custom error handling: Either:

      • interpret error as valid response by mapping it to response type and returning it
      • map error to a new Error type by throwing it

      Parameters

      • error: unknown

        response body parsed as JSON

      • method: keyof T

        provider method name

      Returns unknown

A mapping between provider method names and url paths. Paths have to use /leadingSlash

serviceSlug: string

Slug used in the URL path

Generated using TypeDoc