You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the title, for example, I have an interface now.
@ApiOperation(value = "get model info by type") @GetMapping("/model/{objectClass}") public RestResult getModelInfo(@PathVariable Integer objectClass) { return resourceFeignClient.getModel(objectClass); }
If I pass in the parameter "1", it means to get the model "apple"; the parameter "2" is passed, which means to get the model "orange". I want to automatically generate api "/model/apple" and "model/orange" corresponding to "/model/1" and "model/2" through custom plugin rules. I don't know if my idea is currently feasible.
The text was updated successfully, but these errors were encountered:
lindaosong
changed the title
Is it possible to dynamically generate apis based on existing interfaces via plugins?
Is it possible to dynamically generate apis based on existing apis via plugins?
Feb 28, 2019
As the title, for example, I have an interface now.
@ApiOperation(value = "get model info by type") @GetMapping("/model/{objectClass}") public RestResult getModelInfo(@PathVariable Integer objectClass) { return resourceFeignClient.getModel(objectClass); }
If I pass in the parameter "1", it means to get the model "apple"; the parameter "2" is passed, which means to get the model "orange". I want to automatically generate api "/model/apple" and "model/orange" corresponding to "/model/1" and "model/2" through custom plugin rules. I don't know if my idea is currently feasible.
The text was updated successfully, but these errors were encountered: