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
Add option to show operationId #1274
Comments
@marclave I see that endpoints in the Sidebar are referenced via a combination of tags, method and path like this I'm just curious to understand more on the decision to use tags in the URLs. Could this use the I think it can be much easier to access an API endpoint via an operationID, given the uniqueness of it. More context here Please let me know your thoughts on this |
@aditya-67 really sorry I missed this! I really appreciate your comment and all the added context. @amritk thoughts on conditional router based on if operationId is present? |
I think we should be able to do it, something like |
Hey! any updates on this? |
Sorry @arthurfiorette not at the moment, @marclave what do you think? |
I think we should even consider to make it the default, and the current way the fallback. 🤔 But it might take some time, as it touches quite a few places and would be a breaking change. Maybe something for a version 2.x? |
Discussed in #1209
Originally posted by ninanator March 15, 2024
Feature Request
I would like to be able to show the operationId in the UI. This will allow developers who use auto-generated clients to be able to quickly reference the operationId, since that it is how they know the endpoint. Since this is more of a niche request, I think it would be fair to make this an optional value that can be toggled at the client level.
Examples
Swagger UI
See: https://petstore.swagger.io/?displayOperationId=true
Redocly
See: https://redocly.com/docs/openapi/petstore/pet/uploadFile/
Readme.io
See: https://pet-store-api-explorer.readme.io/reference/uploadfile
Proposed Positioning
I think, based on the other elements already on the page, that this location would be the least disruptive. It could be above the
description
value and potentially italicized.Thank you!
The text was updated successfully, but these errors were encountered: