Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Api

Index

Constructors

constructor

  • new Api(http: HttpClient, eventAggregator: EventAggregator): Api
  • Parameters

    • http: HttpClient
    • eventAggregator: EventAggregator

    Returns Api

Properties

baseUrl

baseUrl: string = ''

Set this property in children class when using this class as inheritance

eventAggregator

eventAggregator: EventAggregator

http

http: HttpClient

Methods

configure

  • configure(): void

defaultOptions

  • defaultOptions(options?: any): any

delete

  • delete(entrypoint: string, body?: any, options?: any): Promise<any>
  • Parameters

    • entrypoint: string
    • body: any = ...
    • options: any = ...

    Returns Promise<any>

get

  • get(entrypoint: string, options?: any): Promise<any>
  • Parameters

    • entrypoint: string
    • options: any = ...

    Returns Promise<any>

normalizeBody

  • normalizeBody(body: any, options: any): any

post

  • post(entrypoint: string, body?: any, options?: any): Promise<any>
  • Parameters

    • entrypoint: string
    • body: any = ...
    • options: any = ...

    Returns Promise<any>

put

  • put(entrypoint: string, body?: any, options?: any): Promise<any>
  • Parameters

    • entrypoint: string
    • body: any = ...
    • options: any = ...

    Returns Promise<any>

Generated using TypeDoc