Skip to content

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

Closed
@richmahn

Description

@richmahn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions