MENU

Fun & Interesting

OpenAPI + Zod: Generate The Ultimate TypeScript API Clients Automatically

Typed Rocks 6,478 6 months ago
Video Not Working? Fix It Now

By using the OpenApi spec we can really easy specify our API in a language agnostic way. But not only that. By leveraging openapi-generators like the openapi-zod-client we can easily create complete client or server implementations from our specification. In this video we will discover how we can generate a completely typesafe http client in typescript using this powerful generator. https://github.com/astahmer/openapi-zod-client https://openapi-generator.tech/docs/generators/ 0:00 Intro 0:14 What is an OpenApi spec? 3:45: petstore.yaml example explained 5:25 Let's generate some code 14:00 Outro

Comment