Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • FetchClient

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

url

url: string

Accessors

autocomplete

  • get autocomplete(): boolean
  • Returns boolean

parameterList

  • Returns URLParamList

  • Parameters

    Returns void

Methods

buildRequest

  • buildRequest(url: string): Request
  • Build a fetch resource request.

    Parameters

    • url: string

      The URL that is used to identify the ressource.

    Returns Request

fetch

  • fetch(url?: string): Promise<object>
  • Sends a GET request to the SmartSearch API at the given or stored url

    Parameters

    • Default value url: string = this.url

      Overrides the url class field

    Returns Promise<object>

getUrlWithPath

  • getUrlWithPath(url: string): string
  • Creates an execute or autocomplete URL.

    Parameters

    • url: string

    Returns string

Generated using TypeDoc