Introduction

Let’s get an overview of using Go to work with REST APIs.

We'll cover the following

Overview of REST

The subject of this chapter is the development and use of simple RESTful servers and clients using the Go programming language. REST is an acronym for REpresentational State Transfer and is primarily an architecture for designing web services. Although web services exchange information in HTML, RESTful services usually use JSON format, which is well supported by Go. REST is not tied to any operating system or system architecture and is not a protocol; however, to implement a RESTful service, we need to use a protocol such as HTTP. When developing RESTful servers, we need to create the appropriate Go structures and perform the necessary marshaling and unmarshaling operations for the exchange of JSON data.

Get hands-on with 1200+ tech skills courses.