Below two github repos contain my examples of use of OpenApi codegen:

https://github.com/shipengx/openapi-codegen-demo-spring-boot
This is a Spring Boot web application that uses openapi-codegen maven plugin to generate example PetApi interface for spring boot controller to implement. The auto-generated java classes are generated from “petstore.yaml” openapi spec file.

https://github.com/shipengx/openapi-codegen-demo
This is a Java application that uses openapi-codegen maven plugin to generate exaxmple client code that can call the petstore Web APIs, the API which we wrote in above “spring boot” web app.
It’s a great example of use of auto-generated openapi client class : “ApiClient”.

below is the link for official openapi-generator maven plugin:
https://github.com/OpenAPITools/openapi-generator/tree/master/modules/openapi-generator-maven-plugin

--

--