Back to projects
Dec 29, 2020
1 min read

openapi-client-generator

Framework-agnostic OpenAPI client generator for Typescript

Consuming a REST API can be needlessly complicated at times, especially when having to manually maintain client code, paths etc. In one of our projects at work we relied on restful-react to generate React components and hooks based on an OpenAPI schema which was really convenient in the beginning. However restful-react can be too sophisticated at times and restrictive which we noticed as our application handles a lot of dynamic data that cannot be easily expressed by the created hooks.

Eventually we ran into the scenario where sometimes we’d really just like to send a simple request without any complex wrappers or hooks, yet have those client methods be automatically generated. Therefore this command line tool has been created to simplify maintaining reliable and up to date client code in our frontend.