Designing Your REST API
So far, we have explored many concepts and tools that help us on the client side, but it’s now time to explore the server side. This chapter will explore how to design and implement a REST API using Go and the standard library. You will learn enough to have your very first REST API written in Go, understanding which HTTP methods to use and which status code to return. Also, you will be able to define the URLs used for your resources.
We will go through the following topics:
- Exploring HTTP methods and status codes
- Understanding routing
- Building middleware
- Using API versioning
- Building a CRUD API