Skip to content

[Feature]: Turn SDK Mock API to ApiClient agnostic implementation #2117

@kpanot

Description

@kpanot

Context

In the current implementation the generated api-mock.ts in the SDK imports the ApiFetchClient.
To be able to fully support the multi client strategy, the api-mock.ts file should be ApiClient agnostic.

Proposal

  • Change the implementation of the file to factory requiring the ApiClient
  • Remove the Optional PeerDependency to @ama-sdk/client-fetch from the SDK shell.
  • Remove the Optional PeerDependency to isomorphic-fetch from the SDK shell.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions