From ec80f62af115edc642e1f61d94b17c9a0e8f9ea1 Mon Sep 17 00:00:00 2001 From: gongxh Date: Mon, 8 Nov 2021 14:09:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=98=BE=E7=A4=BA=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NX.ERP.WebAPi/App_Start/SwaggerConfig.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NX.ERP.WebAPi/App_Start/SwaggerConfig.cs b/NX.ERP.WebAPi/App_Start/SwaggerConfig.cs index 756de52..a4b6fe3 100644 --- a/NX.ERP.WebAPi/App_Start/SwaggerConfig.cs +++ b/NX.ERP.WebAPi/App_Start/SwaggerConfig.cs @@ -92,7 +92,7 @@ namespace NX.ERP.WebAPi // By default, this will be controller name but you can use the "GroupActionsBy" option to // override with any value. // - //c.GroupActionsBy(apiDesc => apiDesc.HttpMethod.ToString()); + c.GroupActionsBy(apiDesc => apiDesc.ActionDescriptor.ControllerDescriptor.ControllerName); // You can also specify a custom sort order for groups (as defined by "GroupActionsBy") to dictate // the order in which operations are listed. For example, if the default grouping is in place @@ -221,7 +221,7 @@ namespace NX.ERP.WebAPi // 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.List); + c.DocExpansion(DocExpansion.List); // Specify which HTTP operations will have the 'Try it out!' option. An empty paramter list disables // it for all operations.