在OpenAPI导入中删除了HTTP后端 [英] HTTP(s) backend removed on OpenAPI import

查看:78
本文介绍了在OpenAPI导入中删除了HTTP后端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道为什么在导入OpenAPI规范时删除了HTTP后端端点/Web服务URL?保留后缀,URL方案等设置,为什么要清除URL?

I was wondering why the HTTP(s) backend endpoint/web service URL is removed upon importing an OpenAPI spec? Settings like suffix, URL scheme, etc, is preserved, so why is the URL cleared?

我发现导入后错过此操作非常容易,因此关闭了API.

I find it suprisingly easy to miss this after an import, thus shutting down the API.

还是我缺少什么?

推荐答案

主机 Swagger文档.

The Web Service URL is populated using the value of host in the Swagger document.

您的文档中可能没有该设置.

You probably don't have that set in your document.


这篇关于在OpenAPI导入中删除了HTTP后端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆