Summary
In this chapter, you learned about the main differences between specification-first, (API-first), and code-first development. We developed an OpenAPI specification from scratch in detail, going through each part of its structure, creating paths and methods with parameters, defining schemas for generating the DTOs to use in the requests, responses, and as parameters, and defining a security scheme.
Then we configured the Order Management API service with the OpenAPI code generator plugin for Maven and looked at each necessary parameter to have the code generated properly as expected and ran a successful build using the OpenAPI plugin.
After that, we started to look at the generated code, where it is located, and how to see it along with your own code implementation.
We went through an overview of the architectural package structure for the project and the objective of each package in the structure.
Next, we implemented our controller, using the generated interface...