When creating an API with accompanying Swagger documentation, two general paths can be taken:
- Build First: Implement the API --> add Swagger annotations --> generate the UI and clients from the annotations
- Design First: Design the API spec in Swagger YAML or JSON --> generate the UI, clients, and server stubs from the spec --> implement the server stubs
On my recent project, we had embarked down the "Build First" path. After implementing the API using the mighty Spring Boot, we integrated Swagger using the slick SpringFox library, as widely demonstrated in numerous blog posts.
But all w