Swagger 虚张声势用户界面:如何展开到列表操作
使用招摇过市配置。我知道这与docExpansion有关:list;但我不确定如何在SwaggerConfig文件中实例化该过程 老问题,但如果它有助于其他人使用谷歌,请回答 如果要在Swagger UI中设置操作的初始扩展,请在SwaggerConfig.cs文件中找到“EnableSwaggerUi”,您可以在其中添加/取消注释docExpansion设置 例如:Swagger 虚张声势用户界面:如何展开到列表操作,swagger,swagger-ui,Swagger,Swagger Ui,使用招摇过市配置。我知道这与docExpansion有关:list;但我不确定如何在SwaggerConfig文件中实例化该过程 老问题,但如果它有助于其他人使用谷歌,请回答 如果要在Swagger UI中设置操作的初始扩展,请在SwaggerConfig.cs文件中找到“EnableSwaggerUi”,您可以在其中添加/取消注释docExpansion设置 例如: .EnableSwaggerUi(c => { ... // Use t
.EnableSwaggerUi(c =>
{
...
// Use this option to control how the Operation listing is displayed.
// It can be set to "None" (default), "List" (shows operations for each resource),
// or "Full" (fully expanded: shows operations and their details).
c.DocExpansion(DocExpansion.Full);
...