2

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.

MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
  • Does this answer your question? [How to generate a Swagger #definition from sample JSON](https://stackoverflow.com/questions/49277137/how-to-generate-a-swagger-definition-from-sample-json) – Helen Aug 03 '20 at 07:01

1 Answers1

3

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

https://apistudios.io

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

Farhan Ghumra
  • 15,180
  • 6
  • 50
  • 115
Mohsen
  • 64,437
  • 34
  • 159
  • 186