将相对路径添加到 Swashbuckle
Add relative path to Swashbuckle
我在我的 WebApi 项目中使用 Swashbuckle.core.5.5.3。我可以像这样在我的模型中使用 xml 评论中的链接:
/// <summary>
/// This is a test comment
/// http://www.microsoft.com
///
/// </summary>enter code here
它是这样显示的:
有没有可能添加这样的相对路径,这样我就不需要在服务器之间更改它?
myserver + '/path/doc.html'
我能够解决它,因为这似乎与 Swashbuckle 无关。以下 link 帮助我找到了答案。
/// This is a test link. <a href="../path/file.html">See details</a><br></br>
我在我的 WebApi 项目中使用 Swashbuckle.core.5.5.3。我可以像这样在我的模型中使用 xml 评论中的链接:
/// <summary>
/// This is a test comment
/// http://www.microsoft.com
///
/// </summary>enter code here
它是这样显示的:
有没有可能添加这样的相对路径,这样我就不需要在服务器之间更改它?
myserver + '/path/doc.html'
我能够解决它,因为这似乎与 Swashbuckle 无关。以下 link 帮助我找到了答案。
/// This is a test link. <a href="../path/file.html">See details</a><br></br>