.net 如何在swagger swash Bulk中设置具有相同状态代码的多个返回类型
我正在研究swagger,我想让swagger从具有相同状态代码的单个函数中知道多个返回类型.net 如何在swagger swash Bulk中设置具有相同状态代码的多个返回类型,.net,asp.net-web-api,swagger,.net,Asp.net Web Api,Swagger,我正在研究swagger,我想让swagger从具有相同状态代码的单个函数中知道多个返回类型 我一直在函数上使用这些标记: [SwaggerResponse(HttpStatusCode.OK, Type = typeof(PagedResult<GetIncidentsReportResponse>))] [SwaggerResponse(HttpStatusCode.OK, Type = typeof(IEnumerable<GetCountResponse>))]
我一直在函数上使用这些标记:
[SwaggerResponse(HttpStatusCode.OK, Type = typeof(PagedResult<GetIncidentsReportResponse>))]
[SwaggerResponse(HttpStatusCode.OK, Type = typeof(IEnumerable<GetCountResponse>))]
[SwaggerResponse(HttpStatusCode.OK,Type=typeof(PagedResult))]
[SwaggerResponse(HttpStatusCode.OK,Type=typeof(IEnumerable))]
请提供您迄今为止尝试的代码示例。我一直在函数[SwaggerResponse(HttpStatusCode.OK,Type=typeof(PagedResult))][SwaggerResponse(HttpStatusCode.OK,Type=typeof(IEnumerable))]上使用这些标记