© Jan Newmarch and Ronald Petty 2022
J. Newmarch, R. PettyNetwork Programming with Go Languagehttps://doi.org/10.1007/978-1-4842-8095-9_14

14. REST

Jan Newmarch1   and Ronald Petty2
(1)
Oakleigh, VIC, Australia
(2)
San Francisco, CA, USA
 

In previous chapters, we looked at HTTP and gave an example of a web system. However, we didn’t give any particular structure to the system, just what was simple enough for the problem. There is an architectural style developed by one of the key authors of HTTP 1.1 (Roy Fielding) called REST (REpresentational State Transfer). In this chapter, we look at the REST style and what it means for building web applications. We have to go back to fundamentals for this.

REST has many components that have to be followed if the ...

Get Network Programming with Go Language: Essential Skills for Programming, Using and Securing Networks with Open Source Google Golang now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.