Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SlimBaseAPI

Hierarchy

Index

Constructors

constructor

  • new SlimBaseAPI(client: AxiosInstance, tokenStore: TokenStore, urlPrefix: string, defaultRole?: any): SlimBaseAPI

Properties

client

client: AxiosInstance

defaultRole

defaultRole: any

tokenStore

tokenStore: TokenStore

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: {}

    Returns Promise<SlimResponse>

saveAccessToken

  • saveAccessToken(token: any): void

Generated using TypeDoc