Manages API requests and handles configuration, authentication, and error parsing.

Methods

  • Adds an authorization token to the request and performs the request.

    Parameters

    • requestConfig: any

      The fetch request configuration.

    Returns Promise<any>

    A promise that resolves with the result of the request.

  • Performs the HTTP request using the Fetch API.

    Parameters

    • requestConfig: any

      The fetch request configuration.

    Returns Promise<any>

    A promise that resolves with the result of the request.