Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swagger UI is changing the protocol in the request from https to http

In the swaggerUI it's default takes the 'http' but the actual API will support the 'https' One possible way, will remove the 'http' in the schema, but in local unable to test the 'https' so what is the possible solution for this issue?

Anyone have idea pls help me to find it out...

like image 963
Ramyachinna Avatar asked May 19 '26 02:05

Ramyachinna


1 Answers

Just put it in your docs

schemes:
- "https"
- "http"

And you'll got select with provided schemes

enter image description here

like image 76
Ruslan Valeev Avatar answered May 21 '26 16:05

Ruslan Valeev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!