Summary
Good documenting of an API is essential for its acceptance, and OpenAPI is one of the most commonly used specifications when it comes to documenting RESTful services. springdoc-openapi is an open source project that makes it possible to create OpenAPI-based API documentation on the fly at runtime by inspecting Spring WebFlux and Swagger annotations. Textual descriptions of an API can be extracted from the annotations in the Java source code and be placed in a property file for ease of editing. springdoc-openapi can be configured to bring in an embedded Swagger UI viewer into a microservice, which makes it very easy to read about APIs that have been exposed by the microservice and also try them out from the viewer.Now, what about bringing some life to our microservices by adding persistence, that is, the capability to save their data in a database? To do this, we also need to add some more APIs so that we can create and delete the information that's handled by the microservices...