DEV Community

cheikh
cheikh

Posted on

Building a Go REST client in 2022

Image description

It’s 2022, and RESTful APIs are still being consumed by developers. With over 90% of developers implementing or integrating it, REST APIs have lived up to Roy Fielding’s ambitions. The introduction of Generics in Go simplifies the REST API integration. In this post, I’ll walk you through my approach to building a type-safe API client with Go. I’ll be using https://reqres.in’s API to get test data. The types defined in this post represent reqres’ API data.

Read the rest : here

Top comments (0)