Options
All
  • Public
  • Public/Protected
  • All
Menu

Class KyrioRestClient

Abstract implementation of REST clients to call Kyrio services.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Protected _account

_account: KyrioAccount

Kyrio account associated with this client

Methods

Private composeQueryParams

  • composeQueryParams(params: any): string
  • Composes query parameters into encoded string.

    Parameters

    • params: any

      Operation query parameters

    Returns string

    Encoded query parameter string

Private createClient

  • createClient(): any

Protected invoke

  • invoke(method: string, route: string, params: any, body: any, callback: function): void
  • Invokes REST operation on the server and handles the response.

    Parameters

    • method: string

      Operation method: GET, POST, PUT or DELETE

    • route: string

      Operation base route.

    • params: any
    • body: any

      Value to be sent in request body.

    • callback: function

    Returns void

    Value returned by the server of expected type.

Generated using TypeDoc