我可以从 json 文件创建存根 swagger 模型定义吗 [英] Can I create a stub swagger model definition from a json file

查看:39
本文介绍了我可以从 json 文件创建存根 swagger 模型定义吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有工具可以让我从示例 JSON 生成 Swagger yaml 定义模型?

Is there a tool that lets me generate a Swagger yaml definition model from sample JSON?

我会进入并编辑和清理 yaml,但如果有什么东西可以基于大型或复杂的示例 json 对象来剔除 yaml 的结构,那就太好了.

I would go in and and edit and clean up the yaml, but would be nice if there was something out there that would stub out the structure of a yaml based on a large or complex sample json object.

推荐答案

您可以使用具有此功能的 Apigee API Studio:

You can use Apigee's API Studio that has this feature:

http://apistudio.io/

点击插入菜单,然后点击新建模型.形成一个 JSON 示例,您可以创建所需的所有路径和操作.

Click on Insert menu and then New Model. Form a JSON example you can create all of the paths and operations you want.

这篇关于我可以从 json 文件创建存根 swagger 模型定义吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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