update 控制器上注释展示

This commit is contained in:
luoyunchong
2020-08-13 00:14:20 +08:00
parent d108d99e32
commit 5ea5c57450
16 changed files with 73 additions and 43 deletions

View File

@@ -50,9 +50,9 @@ namespace Basic
c.GeneratePolymorphicSchemas();
c.IncludeXmlComments(Path.Combine(AppContext.BaseDirectory, "Basic.xml"));
c.IncludeXmlComments(Path.Combine(AppContext.BaseDirectory, "Basic.xml"),true);
c.EnableAnnotations();
//c.EnableAnnotations();
c.AddServer(new OpenApiServer()
{
Url = "",
@@ -104,7 +104,7 @@ namespace Basic
app.UseKnife4UI(c =>
{
c.RoutePrefix = ""; // serve the UI at root
//c.RoutePrefix = ""; // serve the UI at root
c.SwaggerEndpoint("/v1/api-docs", "V1 Docs");
c.SwaggerEndpoint("/gp/api-docs", "<22><>¼ģ<C2BC><C4A3>");
});