You’re given the task of writing a microservice AND providing a documentation in OpenAPI format. You already know that there are two main approaches:
- code-first : write the code, using OpenAPI annotations, and then generate the OpenAPI document
- design-first : write the OpenAPI document (a.k.a. the
openapi.yaml
file) and then generate the code
This is the second article in a series and reviews the design-first approach, the code-first approach was the subject of the first article.
Read More ...