.NET Framework Api Swashbuckle(Swagger)在DEV中显示所有参数

发布于 2025-01-21 05:44:32 字数 659 浏览 3 评论 0原文

我已将其部署到Windows Server 2019上的IIS V11。API本身可以使用,它是一个不在.NET Core上的Web API。 Swashbuckle在部署状态中仅显示1个参数。

这是某种形式的配置 - 但是哪一种?

这是API:

[HttpPost]
[Route("endCitrixOnPremSession/{broker}/{uid}")]
public bool endCitrixOnPremSession(string broker, int uid)
    

第一个屏幕截图是Local -Host调试Iisexpress。

此屏幕截图在IIS上运行,它没有拾取整个URL

I have deployed it to IIS v11 on Windows Server 2019. The API itself works, it is a Web API not on .NET Core. Swashbuckle shows only 1 param in the deployed state.

It is a configuration of some sort - but which one?

This is the API:

[HttpPost]
[Route("endCitrixOnPremSession/{broker}/{uid}")]
public bool endCitrixOnPremSession(string broker, int uid)
    

The first screenshot is the localhost debugging IISexpress.

this is the iisexpress localhost

This screenshot is running on IIS it is not picking up the whole url

This is IIS

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

笑忘罢 2025-01-28 05:44:32

我找到了这个问题。 100%的IIS服务器的Misconfig。解决方案被我混淆,在错误的兔子中寻找答案。 IIS中的路径被设置为错误的驱动器。

I found the issue. 100% a misconfig of my iis server. Solution was obfuscated by me, looking for answers in the wrong rabbit whole. Path in IIS was set to wrong drive.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文