Represents JsonApiClient that performs requests to backend

Hierarchy

  • JsonApiClient

Constructors

Properties

#fetcher: Fetcher

Accessors

  • get baseUrl(): string
  • Base URL will be prepended to url unless url is absolute. It can be convenient to set baseUrl for an instance of fetcher to pass relative URLs to methods of that instance.

    Returns string

Methods

  • Interrupts the request by given requestId, if request is not found returns false.

    Parameters

    • Optional requestId: string

    Returns boolean

  • Sets new interceptor to the current Fetcher instance.

    Parameters

    • interceptor: FetcherInterceptor

    Returns void

  • Removes the existing interceptor from the Fetcher instance.

    Parameters

    • interceptor: FetcherInterceptor

    Returns void

Generated using TypeDoc