Closed ivangsa closed 2 years ago
What about even drop the jdl generated Resource and replace them by openapi generation? Would slim the framework and ensure best practices (and extensibility) WDYT?
This issue is stale because it has been open 30 days with no activity. Our core developers tend to be more verbose on denying. If there is no negative comment, possibly this feature will be accepted. We are accepting PRs :smiley:. Comment or this will be closed in 7 days
Ouch! was a good idea but I don't have time to help with the implementation.
Overview of the feature request
With JHipster is easy to generate CRUD microservices for a given domain model described as JDL (DDD)
With OpenAPI/Swagger we can describe an API.
If we add some extension tags to OpenAPI definitions mapping schemas to entities then a subgenerator could generate api controller implementation that links repository/services/entities with openapi resources.
Customizing the famous petstore:
could generate something like this:
Motivation for or Use Case
This is just an idea inspired on this project https://github.com/apiaddicts/apigen (sorry it's in spanish) that generates full backend from an OpenAPI sprinkled with some special x- tags
I think this could be a good addition to the richness of JHipster model based code generation
Related issues or PR