Home > @dinofe/xt-core > ApisauceInstance
# ApisauceInstance interface
Signature:
export interface ApisauceInstance
# Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| addAsyncRequestTransform | (transform: AsyncRequestTransform) => void | ||
| addAsyncResponseTransform | (transform: AsyncResponseTransform) => void | ||
| addMonitor | (monitor: Monitor) => void | ||
| addRequestTransform | (transform: RequestTransform) => void | ||
| addResponseTransform | (transform: ResponseTransform) => void | ||
| any | <T, U = T>(config: AxiosRequestConfig) => Promise<ApiResponse<T, U>> | ||
| asyncRequestTransforms | AsyncRequestTransform[] | ||
| asyncResponseTransforms | AsyncResponseTransform[] | ||
| axiosInstance | AxiosInstance | ||
| delete | <T, U = T>(url: string, params?: {}, axiosConfig?: AxiosRequestConfig) => Promise<ApiResponse<T, U>> | ||
| deleteHeader | (name: string) => AxiosInstance | ||
| get | <T, U = T>(url: string, params?: {}, axiosConfig?: AxiosRequestConfig) => Promise<ApiResponse<T, U>> | ||
| getBaseURL | () => string | Gets the current base URL used by axios | |
| head | <T, U = T>(url: string, params?: {}, axiosConfig?: AxiosRequestConfig) => Promise<ApiResponse<T, U>> | ||
| headers | HEADERS | ||
| link | <T, U = T>(url: string, params?: {}, axiosConfig?: AxiosRequestConfig) => Promise<ApiResponse<T, U>> | ||
| monitors | Monitor | ||
| patch | <T, U = T>(url: string, data?: any, axiosConfig?: AxiosRequestConfig) => Promise<ApiResponse<T, U>> | ||
| post | <T, U = T>(url: string, data?: any, axiosConfig?: AxiosRequestConfig) => Promise<ApiResponse<T, U>> | ||
| put | <T, U = T>(url: string, data?: any, axiosConfig?: AxiosRequestConfig) => Promise<ApiResponse<T, U>> | ||
| requestTransforms | RequestTransform[] | ||
| responseTransforms | ResponseTransform[] | ||
| setBaseURL | (baseUrl: string) => AxiosInstance | Sets a new base URL | |
| setHeader | (key: string, value: string) => AxiosInstance | ||
| setHeaders | (headers: HEADERS) => AxiosInstance | ||
| unlink | <T, U = T>(url: string, params?: {}, axiosConfig?: AxiosRequestConfig) => Promise<ApiResponse<T, U>> |