Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • ResponseType

  • InputType

Hierarchy

Index

Constructors

constructor

  • new AbstractApiResource(axios: AxiosInstance, ObjectConstructor?: undefined | object): AbstractApiResource

Properties

Protected axios

axios: AxiosInstance

Protected Optional objectFactory

objectFactory: undefined | function

Abstract prefix

prefix: string

Methods

Protected buildParams

Protected buildSearch

  • buildSearch(field: string, query: string | number | boolean, type: string | undefined, isArray?: boolean): string
  • Parameters

    • field: string
    • query: string | number | boolean
    • type: string | undefined
    • Default value isArray: boolean = false

    Returns string

Protected buildUrl

count

delete

get

getAll

getOne

Protected loadPage

  • loadPage(params: string[], options: GetOptions): void

Protected loadProps

Protected loadSearches

  • loadSearches(params: string[], options: GetOptions): void

Protected loadSort

  • loadSort(params: string[], options: GetOptions): void

patch

  • patch<PatchInputType, PatchResponseType>(id: number | string, item: PatchInputType, options?: GetOneOptions): Promise<PatchResponseType & AxiosResponseExt>

post

Protected preProcessData

  • preProcessData(item: any): any

put

  • put<PutInputType, PutResponseType>(id: number | string, item: PutInputType, options?: GetOneOptions): Promise<PutResponseType & AxiosResponseExt>

Protected wrapHydraItem

  • wrapHydraItem(data: any): any & object

Protected wrapPromise

  • wrapPromise(axiosPromise: AxiosPromise, objectFactory?: undefined | function): Promise<Object>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc