Summary
In this chapter, we conveyed a lot of general information about APIs in general – specifically REST APIs. We talked about other alternatives, such as gRPC, GraphQL, and SOAP before diving deeper into the principles and concepts that are used in REST and how they’re used in the HTTP protocol.
Regarding REST, we took a closer look at how REST leverages HTTP verbs, status codes, headers, and request/response bodies to communicate the data, format, and actions required to provide us with a solid foundation to build our APIs.
Finally, we learned how to build a very simple API server and client and how to communicate information between them using the Go standard library using the HTTP package.
In the next chapter, we’ll explore the different options and tools that we have to better understand existing REST APIs.
Unlock this book’s exclusive benefits nowScan this QR code or go to packtpub.com/unlock, then search this book by name. |
![]() |
|
Note: Keep your purchase invoice ready before you start. |
