4 ms·
I use openapi-generator with FastAPI to do this. It has a lot of languages and libraries you can choose from to generate your client side code in. https://git
by jayjaycross 6y ago
I use openapi-generator with FastAPI to do this. It has a lot of languages and libraries you can choose from to generate your client side code in.
https://github.com/OpenAPITools/openapi-generator https://github.com/OpenAPITools/openapi-generator
- Cthulhu_ 6y agoI use the openapi-generator as well, but I write the spec first, then generate both client- and server-side models. Not the client itself so much; I don't like the client-side clients it generates much, and the server-side client is barebones at best. (Server is in Go, client is in Typescript)