-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[BUG] Can't generate only one specific endpoint of API #17653
Comments
so your goal is to generate the output (client, server, etc) using just one operation (based on |
yes, absolutely right. e.g. controller CustomerApi has many endpoints and I want to generate in the another service only one CustomerApi endpoint |
we don't offer that at the moment. may I know if you've time to contribute this enhancement or sponsor this feature financially? |
Yes, I can try to create this feature (contribute). |
can you please PM me via Slack to further discuss this when you've time? https://join.slack.com/t/openapi-generator/shared_invite/zt-12jxxd7p2-XUeQM~4pzsU9x~eGLQqX2g |
i've filed #17859 to add a new rule called FILTER with a list of operationId as the input. my local tests look good so far. can you also give it a try when you've time? |
PR merged. please give it a try with the latest master. |
The same would be very useful to use with tags. I tried |
I also thought about it and did it with tricky way in gradle: gradle closure:
gradle tasks:
|
I am afraid I cannot do this with |
ChatGPT: Add the OpenAPI Generator Plugin to your pom.xml
Define Profiles to Configure the API and Endpoints
maybe it will be work :D |
🐛 Bug Report:
Describe the bug
I decided migrate to OpenAPI Generator from Swagger Codegen.
In Swagger Codegen was possible generate specific endpoint of API by providing operationId with separator '#':
"apis": "ContractSearch#findContractByCustomerId"
So here is my Gradle task and setup for OpenAPI Generator:
Expected behavior
Generate only one specified endpoint. But in OpenAPI Generator it doesn't work. Only if whole api
"apis": "ContractSearch"
, then it will generate.Package System (versions):
Also I wrote question on stackoverflow:
https://stackoverflow.com/questions/77557530/openapi-generator-generate-only-one-specific-endpoint-from-api
Maybe it is not a bug, just doesn't have this functionality.
The text was updated successfully, but these errors were encountered: