Can I create a stub swagger model definition from a json file

限于喜欢 提交于 2019-11-28 11:52:02

问题


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

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.


回答1:


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

http://apistudio.io/

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



来源:https://stackoverflow.com/questions/36774452/can-i-create-a-stub-swagger-model-definition-from-a-json-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!