Options
All
  • Public
  • Public/Protected
  • All
Menu

Iland API HTTP Client.

Hierarchy

  • Http

Index

Constructors

constructor

  • new Http(baseUrl: string): Http
  • Constructs a new Http instance.

    Parameters

    • baseUrl: string

      the base URL of the iland Cloud API

    Returns Http

Methods

delete

  • delete(url: string, config?: AxiosRequestConfig): Promise<AxiosResponse>
  • Perform a DELETE request against the iland Cloud API.

    throws

    {ApiError} if the server responds with an error

    Parameters

    • url: string

      the URL path

    • Optional config: AxiosRequestConfig

      request configuration

    Returns Promise<AxiosResponse>

    promise that resolves with the server response

get

  • get(url: string, config?: AxiosRequestConfig): Promise<AxiosResponse>
  • Perform a GET request against the iland Cloud API.

    throws

    {ApiError} if the server responds with an error

    Parameters

    • url: string

      the URL path

    • Optional config: AxiosRequestConfig

      request configuration

    Returns Promise<AxiosResponse>

    promise that resolves with server response

post

  • post(url: string, data?: any, config?: AxiosRequestConfig): Promise<AxiosResponse>
  • Perform a POST request against the iland Cloud API.

    throws

    {ApiError} if the server responds with an error

    Parameters

    • url: string

      the URL path

    • Optional data: any

      the data to include in the request body

    • Optional config: AxiosRequestConfig

      request configuration

    Returns Promise<AxiosResponse>

    promise that resolves with the server response

put

  • put(url: string, data?: any, config?: AxiosRequestConfig): Promise<AxiosResponse>
  • Perform a PUT request against the iland Cloud API.

    throws

    {ApiError} if the server responds with an error

    Parameters

    • url: string

      the URL path

    • Optional data: any

      the data to include in the request body

    • Optional config: AxiosRequestConfig

      request configuration

    Returns Promise<AxiosResponse>

    promise that resolves with the server response

request

  • request(config: AxiosRequestConfig): Promise<AxiosResponse>
  • Performs a request against the iland Cloud API.

    throws

    {ApiError} if the server responds with an error

    Parameters

    • config: AxiosRequestConfig

      request configuration

    Returns Promise<AxiosResponse>

    promise that resolves with the server response

Static versionMime

  • versionMime(mime: string, version?: undefined | number): string
  • Gets a formatted Accept header from a standard MIME and optional version number.

    Parameters

    • mime: string

      the standard MIME string

    • Optional version: undefined | number

      the targeted version (defaults to the SDK version)

    Returns string

    the formatted MIME type

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