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

Use backend types to generate axios calls on client #147

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

essential-randomness
Copy link
Collaborator

This is for Thursday's meeting.

Current limitations:

  1. We're copy-pasting the generated OpenAPI spec from the backend to a file. Filed an issue in the library we're using so we don't need this.
  2. The import from boba-backend isn't really working as of now anyway cause I haven't checked in that PR.
  3. I'm checking in the generated files, which might not be what we want. Maybe a post-install hook for the future
  4. I've had to use a Camelize TS helper whose need we might be able to get rid of.

Example of usage in src/utils/queries/feeds.ts

@ghost
Copy link

ghost commented Oct 17, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

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