arashi-dev
arashi-dev4d ago

swagger to trpc-like interface generator?

I have a backend which exposes a fully detailed swagger json file. And I want to have an auto generated api client with an interface like trpc. I managed to do it using swagger-typescript-api and custom templates, but wondered if anyone did it already or if there is any open source project that does almost the same thing, so I can get better ideas for implementation. Thanks
1 Reply
Nick
Nick4d ago
You want any kind of OpenAPI client codegen There are loads of tools out there Some can even generate react query hooks

Did you find this page helpful?