O'Reilly logo

Distributed Computing with Go by V.N. Nikhil Anurag

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Reusing the HTTP protocol

We defined endpoints in the previous subsection, Resources, but how do we interact with them? REST is built on top of the HTTP protocol and it uses HTTP methods, or verbs in the case of REST, to interact with the server. Let's take our endpoint from the previous example, /api/books, to understand how it is used.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required