Stop creating HTTP clients manually – Part I

TL;DR: Begin producing your HTTP shoppers and all of the DTOs of the requests and responses routinely out of your API, utilizing openapi-generator as a substitute of writing your personal. On this put up I will introduce you to a tremendous device that may generate HTTP shoppers for you. Why is that this half 1? […]

Exploring The Benefits of GraphQL Code Gen

GraphQL is the main methodology of querying APIs in fashionable net growth. But, builders face a typical problem utilizing GraphQL: managing the categories and constructions of the information returned by their queries. Coping with undefined values and casting partial varieties to make the Typescript compiler completely satisfied is irritating. Or establishing varieties for every sort […]

A journey towards a type-safe GraphQL API server

A number of years in the past, we carried out an enormous rewrite of our back-end codebase (now higher often known as The Nice Migration), from a JavaScript monolith right into a central GraphQL API written in TypeScript linked to some micro companies.Since that point, we’ve repeatedly been upping our TypeScript recreation to assist us […]

React Query Codegen from OpenAPI

Rapini is a brand new instrument that may generate {custom} React Query hooks utilizing OpenAPI (Swagger) information. The Command Line Interface (CLI) instrument will take a path to an Open API file and generate a package deal that features react hooks, typescript sorts and axios http requests – and this package deal is conveniently bundled […]