调整接口显示

This commit is contained in:
gongxh
2021-05-19 14:31:23 +08:00
parent a1b40b8c05
commit 2d0c2c1c13
9 changed files with 56 additions and 18 deletions

View File

@@ -101,8 +101,9 @@ namespace NX.ERP.WebAPi
// those comments into the generated docs and UI. You can enable this by providing the path to one or
// more Xml comment files.
//
// c.IncludeXmlComments(string.Format("{0}/bin/NX.ERP.WebAPi.xml", System.AppDomain.CurrentDomain.BaseDirectory));
c.IncludeXmlComments(string.Format("{0}/bin/NX.ERP.WebAPi.xml", System.AppDomain.CurrentDomain.BaseDirectory));
c.IncludeXmlComments(string.Format("{0}/bin/NX.ERP.Model.xml", System.AppDomain.CurrentDomain.BaseDirectory));
// Swashbuckle makes a best attempt at generating Swagger compliant JSON schemas for the various types
// exposed in your API. However, there may be occasions when more control of the output is needed.
// This is supported through the "MapType" and "SchemaFilter" options:
@@ -176,6 +177,8 @@ namespace NX.ERP.WebAPi
// alternative implementation for ISwaggerProvider with the CustomProvider option.
//
//c.CustomProvider((defaultProvider) => new CachingSwaggerProvider(defaultProvider));
})
.EnableSwaggerUi(c =>
{