Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to dynamically generate apis based on existing apis via plugins? #5204

Closed
lindaosong opened this issue Feb 28, 2019 · 1 comment

Comments

@lindaosong
Copy link

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.

@lindaosong 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
@shockey
Copy link
Contributor

shockey commented Apr 5, 2019

Hi!

Unfortunately, your ticket is a bit thin on details as a result of it not following the provided issue template.

We'd be happy to take a look if you open a new issue, and follow the template. Feel free to tag me in the new ticket so I see it.

Thanks!

@shockey shockey closed this as completed Apr 5, 2019
@lock lock bot locked and limited conversation to collaborators Apr 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants