【发布时间】:2018-01-17 14:32:12
【问题描述】:
如何指定具有不同端口的多个模式?具体来说,我想在端口 81 上使用 HTTP,在端口 444 上使用 HTTPS。
swagger: '2.0'
info:
version: 1.0.0
title: API for gateways
description: API for gateways to access server (port 81 for http and 444 for https)
schemes:
- http
- https
host: gateway.example.com:81
basePath: /1.0
paths:
【问题讨论】:
标签: rest swagger swagger-2.0