Constructors
constructor
- new BaseService(baseURL: string, controllerName: string, tokenFactory?: undefined | (() => Promise<string | null>)): BaseService
-
Parameters
-
baseURL: string
-
controllerName: string
-
Optional tokenFactory: undefined | (() => Promise<string | null>)
Properties
Protected axios
axios: AxiosInstance
Private controllerName
controllerName: string
Methods
setBaseUrl
- setBaseUrl(baseURL: string): void
-
Parameters
Returns void
setToken
- setToken(token: string | null): void
-
Parameters
Returns void
A base class for web api services using the axios http client.