简体   繁体   中英

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!

According to the docs...

displayOperationId DISPLAY_OPERATION_ID Boolean=false. Controls the display of operationId in operations list. The default is false.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM