Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make swagger scheme dropdown have the website's protocol selected #6659

Closed
richmahn opened this issue Apr 16, 2019 · 0 comments · Fixed by #6660
Closed

Make swagger scheme dropdown have the website's protocol selected #6659

richmahn opened this issue Apr 16, 2019 · 0 comments · Fixed by #6660

Comments

@richmahn
Copy link
Contributor

A little annoyance that my team has in using a website with HTTPS is that the /api/swagger page always has the 'schemes' selection default to HTTP, so when we point someone to that page (or they link from our Gitea instance's footer) it doesn't work for them, they complain, we tell them to set HTTPS, etc. Always have to remember to set that when you go to that page.

It looks like you can do a little change in ui.tmpl to change the JSON payload to the swagger library before it is called: https://gist.github.com/miguelmota/289643541cf55825f14d2ea66598bf64

Plan to implement this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant