Learn how to achieve full-stack static typing by generating TypeScript clients from .NET Web APIs using Microsoft.AspNetCore.OpenApi and openapi-ts. The tutorial covers creating a .NET API with OpenAPI 3.1 support, generating TypeScript type definitions and clients, and consuming the API in a React application. Includes

8m read timeFrom johnnyreilly.com
Post cover image
Table of contents
What will we do? ​Create an API ​Create our client ​Generate our OpenAPI client ​Adjusting Microsoft.AspNetCore.OpenApi surfaced types ​Consume our generated API client ​Summary ​

Sort: