问题
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