pbrane / api-gateway

Pluggable Spring Boot Application serving as a reverse proxy for API Services
1 stars 0 forks source link

Generate Client API Model and Controller classes #8

Closed pbrane closed 2 weeks ago

pbrane commented 1 month ago

Using Maven plugin, generate OpenAPI model and controller code from OpenAPI specification for the Client API support.

pbrane commented 2 weeks ago

The pom.xml build section contains the configuration used to build the model and stub controller classes. The OpenAPI document contains elements to assist the generator with proper JPA annotations. This is all working and served as a great example of how the generator can almost get you what you need. I'd say 90% of the way. However, at the end of the day, the quality of the implementation just couldn't serve as production ready code. So, the API was written from completely from scratch.