Skip to content

Both HTTP and HTTPS ports cannot be specified #214

@prantlf

Description

@prantlf

I have an API exposed on custom ports:

http://server:8000/api
https://server:8443/api

When I test the API with https://editor.swagger.io, I can switch the protocol from HTTP to HTTPS on the page, but because the port is entered only once with the host together and used for both schemes, I cannot actually send the request to the correct HTTPS endpoint:

host: server:8000
basePath: /api
schemes:
  - http
  - https

Why not adding an additional property configuring the HTTP and HTTPS ports?

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