Options
All
  • Public
  • Public/Protected
  • All
Menu

Module fetch/fetchApiIndex

Index

Functions

Functions

Const default

  • Get an index of resource links for the API

    Parameters

    • apiRoot: string

      url to the root of JSON:API

    • fetch: fetchAdapter = ...

      fetch compatible function

    • onError: (err: Error) => void = ...
        • (err: Error): void
        • Parameters

          • err: Error

          Returns void

    Returns Promise<void | GenericIndex>

    a promise containing an object with an index of resource links

Generated using TypeDoc