Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swagger UI does not display operationId

Our C# Asp.NET (not core) REST API uses the Swashbuckle nuget package (thanks Richard Morris) v5.6 to generate the swagger definition and UI page. The problem is, that the operationId is not displayed on the UI page.

I can see on several pages that the .net core version contains a mystic DisplayOperationId=true configuration settings to (hopelessly) solve this issue. But in the non .net core version I cannot find this settings, nor cannot see a working example how to customize the UI to display that piece of information.

Could somebody help me how to solve this problem? Thanks in advance!

like image 935
Zoltan Hernyak Avatar asked May 22 '26 20:05

Zoltan Hernyak


1 Answers

the query args &displayOperationId=true in url may useful.

test:
https://petstore.swagger.io/?displayOperationId=1

ref:
https://swagger.io/docs/open-source-tools/swagger-ui/usage/configuration/#displayOperationId

like image 107
yurenchen Avatar answered May 24 '26 10:05

yurenchen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!