Home / Companies / PropelAuth / Blog / Post Details
Content Deep Dive

Autogenerating Clients with FastAPI and Github Actions

Blog post from PropelAuth

Post Details
Company
Date Published
Author
Andrew Israel
Word Count
793
Company Posts That Month
9
Language
English
Hacker News Points
-
Post removed?
No
Summary

Handwritten JavaScript or TypeScript API clients can drift from backend changes and introduce errors such as missing parameters or outdated routes, especially as teams and client applications grow. OpenAPI addresses this by defining an API contract that can generate compatible servers and clients, while FastAPI offers a code-first alternative by automatically producing an OpenAPI specification from Python route definitions, including parameters and response schemas. This enables a workflow in which developers update backend routes first, derive the OpenAPI document from the running service, and then generate clients from that document. The process can be automated with GitHub Actions on every push by installing dependencies, starting the FastAPI server, downloading its openapi.json file, using OpenAPI Generator to create a TypeScript fetch client or other language-specific clients, and committing, publishing, or otherwise distributing the updated client.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.