'Spring , How to have Swagger UI send a request without Hypertext Transfer Protocol
Is there a possibility to instruct Swagger not to send the Hypertext Transfer Protocol (http) in front of a POST or GET request ?
As you can see on the screenshot, the Request URL is using http protocol
The reason of my question is that the POST request from swagger-ui is not arriving on the server. An undocumented response is returned from the server although the response code is 200. This can be seen on the second screenshot. When disabling https on the reverse proxy, the request arrives on the server correctly and response code is 200.
In my java spring application, I've implemented the proposed solution which are described in https://springdoc.org/faq.html : How can I deploy springdoc-openapi-ui behind a reverse proxy?
But it didn't solve my proble.
Solution 1:[1]
I managed to find how to tell swagger to make the request when pressing the excecute button In application.yaml, you have to add the following:
swagger: url: "https://www.example.com.com/aa"
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | user2023141 |