| Q | A
| ------------------------------- | -------
| Bug or feature request? | probably feature request
| Which Swagger/OpenAPI version? |
| Which Swagger-UI version? | 3.12.0
| How did you install Swagger-UI? | copy-paste dist/ folder
| Which browser & version? | all
| Which operating system? | all
I want Swagger UI to select scheme to be used per loaded page. If I browse an address starting with http://.. it should select http scheme , if this address is https, UI should select https.
Is it possible at the moment? I'm not sure if it is.
Thanks in advance.
If a scheme is not specified in the API definition itself, Swagger-UI will use the scheme which is used to load it. If you want to control the behavior beyond that, that would be something you need to implement.
Thanks for quick response! I tested and it works as expected, picks up loaded scheme. Thanks!
@oguzhanunlu thanks for confirming it works for you. Can we close the ticket?
Sure
Locking due to inactivity.
This is done to avoid resurrecting old issues and bumping long threads with new, possibly unrelated content.
If you think you're experiencing something similar to what you've found here: please open a new issue, follow the template, and reference this issue in your report.
Thanks!
Most helpful comment
If a scheme is not specified in the API definition itself, Swagger-UI will use the scheme which is used to load it. If you want to control the behavior beyond that, that would be something you need to implement.