HTTP-API Dispatcher: YAML Schemes Property

net

(Jens) #1

Can you add a new HttpApiDispatcher-property to configure the schemes please?
Alternatively, the server could set the schemas values themselves at runtime.
If (a channel with UseTLS == false is attached) —>> add http schema.
If (a channel with UseTLS == true is attached) —>> add https schema.

swagger: '2.0'
info:
  version: 2.0.1
  title: MyService
host: 'myhost:8099'
schemes:                  //  <--------------------
      - http              //  <-------------------- 
      - https             //  <--------------------
basePath: /api