Swagger UI上的服务器响应为空 [英] Server response is empty on Swagger UI

查看:606
本文介绍了Swagger UI上的服务器响应为空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个与Swagger UI集成的REST API。但是,当我尝试从Swagger UI执行请求时,该界面仅向我显示curl命令,但没有提供服务器响应。 curl命令从命令行运行时返回预期的响应,但UI本身未显示任何内容。

I have a REST API that is integrated with Swagger UI. However, when I try to execute a request from Swagger UI, the interface only shows me the curl command but provides no server response. The curl command returns the expected response when run from the command line, but nothing shows up in the UI itself.

我该怎么办才能解决此问题?

What could I do to resolve this?

推荐答案

我有

好消息是请求实际上已发送,您可以在开发人员控制台的网络标签中看到响应(选择您的请求,然后点击回复)。如果有任何问题,谷歌如何跟踪您浏览器中的网络活动。

The good news is that the request is actually sent and you can see the response in you developer console network tab (select your request and click on response). If there's any issue google how to track network activity within your browser.

这篇关于Swagger UI上的服务器响应为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆