Server response is empty on Swagger UI

假如想象 提交于 2019-12-11 04:54:43

问题


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?


回答1:


I have the same issue and it seems to be a bug.

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.



来源:https://stackoverflow.com/questions/45150406/server-response-is-empty-on-swagger-ui

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!