Skip to content

API resource refactoring #2699

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

Merged
merged 7 commits into from
May 1, 2025
Merged

API resource refactoring #2699

merged 7 commits into from
May 1, 2025

Conversation

tom2drum
Copy link
Collaborator

@tom2drum tom2drum commented May 1, 2025

Description and Related Issue(s)

  • Split resource declarations into separate files and prefix them based on the API they belong to.
  • In the app configuration, consolidate all external API parameters in one location for easier management.

These changes will facilitate future refactoring of Rewards API calls, ensuring that all necessary headers are passed in one place using the useApiFetch hook.

Checklist for PR author

  • I have tested these changes locally.
  • I added tests to cover any new functionality, following this guide
  • Whenever I fix a bug, I include a regression test to ensure that the bug does not reappear silently.
  • If I have added, changed, renamed, or removed an environment variable
    • I updated the list of environment variables in the documentation
    • I made the necessary changes to the validator script according to the guide
    • I added "ENVs" label to this pull request

@tom2drum tom2drum merged commit 24eb4fc into main May 1, 2025
8 checks passed
@tom2drum tom2drum deleted the tom2drum/resource-refactoring branch May 1, 2025 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant