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.