Summary
In this chapter, you learned how to build a RESTful API from scratch with the Gin framework. We also covered how to validate incoming HTTP requests with Gin data binding and validation methods. Then, we provided an introduction to the OpenAPI Specification and learned how to generate it from an existing API. You should now be familiar with exposing HTTP methods (GET, POST, DELETE, PUT, and so on) to handle HTTP requests.
In the next chapter, we will use MongoDB as a NoSQL database to manage data persistency for our API.