.NET 6 Web APIs with OpenAPI TypeScript Client Generation

Building Productive, Dead Simple APIs and Clients with .NET 6, OpenAPI, C#, and TypeScript

Why Not gRPC?

Why Not GraphQL?

Why REST?

Working with .NET 6 Web APIs and OpenAPI Tooling

Commands to initialize the tooling for generating the schema at build time.
Line 12–15 add the commands to generate the schema files on build.
Yarn commands to generate the TypeScript client
Updated package.json to add a codegen script.
Using our strongly typed client and data model on the front-end static web site.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Charles Chen

Charles Chen

487 Followers

I Make Software ▪ Currently obsessed with C#, .NET 6, TypeScript, Vue.js, NoSQL, and serverless!