.NET Framework Api Swashbuckle(Swagger)在DEV中显示所有参数
我已将其部署到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 screenshot is running on IIS it is not picking up the whole url
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了这个问题。 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.