Properties
_cahceDuration
_cahceDuration: number
_http
_http: AxiosInstance
Accessors
cacheDuration
- get cacheDuration(): number
- set cacheDuration(value: number): any
-
Returns number
-
Parameters
Returns any
Methods
delete
- delete(endpoint: string): Promise<AxiosResponse>
-
Parameters
Returns Promise<AxiosResponse>
download
- download(endpoint: string, documentName: string, type?: string): Promise<AxiosResponse>
-
Parameters
-
endpoint: string
-
documentName: string
-
Optional type: string
Returns Promise<AxiosResponse>
get
- get(endpoint: string, options?: AxiosRequestConfig): Promise<AxiosResponse>
-
Parameters
-
endpoint: string
-
Optional options: AxiosRequestConfig
Returns Promise<AxiosResponse>
post
- post(endpoint: string, data: any): Promise<AxiosResponse>
-
Parameters
-
endpoint: string
-
data: any
Returns Promise<AxiosResponse>
registerRequestMiddleware
- registerRequestMiddleware(middlewareFunc: any): void
registerResponseErrorMiddleware
- registerResponseErrorMiddleware(middlewareFunc: any): void
registerResponseMiddleware
- registerResponseMiddleware(middlewareFunc: any): void
send a delete request to the given endpoint