Constructors
constructor
- new SlimBaseAPI(client: AxiosInstance, tokenStore: TokenStore, urlPrefix: string, defaultRole?: any): SlimBaseAPI
-
Parameters
-
client: AxiosInstance
-
-
urlPrefix: string
-
Default value defaultRole: any = null
Properties
client
client: AxiosInstance
defaultRole
defaultRole: any
urlPrefix
urlPrefix: string
Methods
Private getRequestRole
- getRequestRole(role: any): any
request
- request(url: any, method: any, __namedParameters?: { bulk: any; data: any; headers: any; params: any; returning: any; role: {} }): Promise<SlimResponse>
-
Parameters
-
url: any
-
method: any
-
Default value __namedParameters: { bulk: any; data: any; headers: any; params: any; returning: any; role: {} } = {}
-
bulk: any
-
data: any
-
headers: any
-
params: any
-
returning: any
-
role: {}
saveAccessToken
- saveAccessToken(token: any): void