swagger-editor 将 json 或 yaml 保存到远程后端的选项是什么? [英] What are the options for swagger-editor to save json or yaml into remote backend?

查看:45
本文介绍了swagger-editor 将 json 或 yaml 保存到远程后端的选项是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道 Swagger 编辑器将 api 文档保存到本地浏览器缓存中(下载 Yaml/Json"和导出 Yaml/Json").

I know that the Swagger-editor saves api documentation into the local browser cache ("Download Yaml/Json" and "Export Yaml/Json").

但是如果我想将它保存到远程服务器中,然后我可以从另一个浏览器继续编辑它.

But what if I want to save it into a remote server then latter I can continue editing it from another browser.

是否有已知的 Swagger-editor 后端可供我使用?

Are there already known Backends for Swagger-editor which I can use?

提前致谢.

推荐答案

swagger-node 项目 内置编辑器并将文件保存在您的文件系统中.

The swagger-node project has the editor built in and saves files in your filesystem.

按照自述文件中的步骤进行安装和运行.当您在启动的编辑器(您的浏览器)中进行更改时,它们会自动保存,您可以在 api 目录中看到更改.例如,如果您更改 { info: { title } } 键,您将看到它自动保存,然后您可以在 ./api/swagger/swagger.yaml<中看到更改/代码>.

Follow the steps in the README to install and run. When you make changes in the editor that you launch (your browser), they are autosaved, and you can see the change in the api directory. For example, if you change the { info: { title } } key, you'll see it autosave and then you can see the change in ./api/swagger/swagger.yaml.

这篇关于swagger-editor 将 json 或 yaml 保存到远程后端的选项是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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