A base class for web api services using the axios http client.

Hierarchy

Constructors

Properties

Constructors

  • Parameters

    • baseUrl: string
    • Optional tokenFactory: (() => Promise<null | string>)
        • (): Promise<null | string>
        • Returns Promise<null | string>

    Returns OnlineTriageService

Properties

axios: AxiosInstance

The axios instance used by this service.

getAlgos: (() => Promise<AxiosResponse<AlgoSearchModel[]>>)

Type declaration

setBaseUrl: ((baseURL: string) => void)

Type declaration

setToken: ((token: null | string) => void)

Type declaration

    • (token: null | string): void
    • Set the token to use in the service's axios instance

      Parameters

      • token: null | string

        Bearer token or null.

      Returns void