generator-jhipster
generator-jhipster copied to clipboard
[V8] modify the 'microservice' option behavior
Overview of the feature request
I propose to modify the jdl's options to have something more clear for the end user in a microservice/gateway configuration.
The thing would be to introduce a new application option: routed and get rid of the microservice option. It also implies an adjustment of the entities option spec.
It would lead to this kind of jdl:
entity A {...}
entity B {...}
application {
config {
baseName Gw1
applicationType gateway
}
routed Ms1.A // routed will generate frontend at the Gw level but redirects all the backend calls to microservice
entities B // will generate frontend and backend at the gateway level
}
application {
config {
baseName Ms1
applicationType microservice
}
entities A
}
Note that these options won't handle the only routing and no frontend at the gateway level. A way to handle this use case would be to separate entities option into frontendEntities and backendEntities and let the routed option only in charge of the routing. Still, this change looks too heavy to introduce.
Your thought?
Motivation for or Use Case
The microservice and the entities ... with options' behavior as they are design designed today are quite difficult to grab because they behaves differently depending on their contexts: backend routing if the option is located/targeting a gateway or generated when the context is a ms
- [ ] Checking this box is mandatory (this is just to show you read everything)