ABP中Swagger配置(中文注释,文件上传,其他参数类型待补充)
1.中文注释
右击XXX.Application项目=》属性=》生成=》勾选XML文档文件(复制文件地址)
在Startup的ConfigureServices中配置services.AddSwaggerGen,新增如下代码
var xmlFile = @"XXX.Application.xml";
var xmlPath = Path.Combine(AppContext.BaseDirectory, xmlFile);
options.IncludeXmlComments(xmlPath, true);
转自:https://www.cnblogs.com/subendong/p/13200025.html
2.文件上传(OAS3)
在XXX.Web.Host项目中新建类FileUploadOperation
using Microsoft.AspNetCore.Http;
using