Implementation of the [[IOnmsHTTP]] interface using Axios: https://github.com/mzabriskie/axios

Implements

IOnmsHTTP

Hierarchy (view full)

Constructors

Properties

axiosObj?: AxiosInstance

The Axios instance we'll use for making ReST calls. This will be reinitialized whenever the server configuration changes.

Accessors

Methods

  • A convenience method for implementers to use to turn JSON into a javascript object. Use this to process a JSON response before returning it in an [[OnmsResult]] object.

    Parameters

    • data: any

    Returns any

  • A convenience method for implementers to use to turn XML into a javascript object. Use this to process an XML response before returning it in an [[OnmsResult]] object.

    Parameters

    • data: any

    Returns any