Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WAZO-4003] Allow extend api client #796

Merged
merged 3 commits into from
Jan 10, 2025
Merged

Conversation

chartrandf
Copy link
Member

@chartrandf chartrandf commented Dec 23, 2024

Context

wazo-js-sdk is very useful for end-user's applications type. But when building an admin application for example, we do not include all admin APIs. So developers needs to use two set of codebase to handle this use case.

We have API Requesters, but this also force developers to loop to each API Requester and initialiser to handle refreshTokenCallback mecanism.

Summary of changes

  • Extract BaseApiClient class
  • WazoApiClient now depends on BaseApiClient
  • getApiClient now accept new parameter for custom ApiClient

@chartrandf chartrandf merged commit 72a1873 into master Jan 10, 2025
4 checks passed
@chartrandf chartrandf deleted the allow-extend-api-client branch January 10, 2025 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants