当我通过 Swagger 启用此文档功能时,我能够查看有关我的文档的所有类型的信息,但没有关于我的控制器名称详细信息/描述的详细信息。
如何显示控制器文档内容如下例所示?
/// <summary>
/// Represents the alert api controller class.
/// <summary>
public class XYZController : ApiController
{
}
Run Code Online (Sandbox Code Playgroud)
在启用 swagger 时,我无法在任何地方看到此内容 Represents the XYZ api controller class. here
但是我能够看到我的所有方法描述。