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

How to share generated client from @rtk-query/codegen-openapi ? #4832

Open
smff opened this issue Jan 28, 2025 · 1 comment
Open

How to share generated client from @rtk-query/codegen-openapi ? #4832

smff opened this issue Jan 28, 2025 · 1 comment

Comments

@smff
Copy link

smff commented Jan 28, 2025

I want to generate api and share it (npm lib for example) with different projects, but I faced a problem:

@rtk-query/codegen-openapi required an apiFile which includes createApi instance (with baseQuery, reducerPath and etc)

Is there any solution (from the "box" or tricky way) that would allow to just generate endpoints with @rtk-query/codegen-openapi and apply them for another createApi instance in another project?

@moonrtv
Copy link

moonrtv commented Feb 2, 2025

I’m experiencing the same problem and notice there hasn’t been any progress on it. Could you please update me if there has been any progress?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants