For prototyping we are using json-server library that creates fake REST api based on our db.json file. Now we would like to use swagger.
So my question is, is there a way to generate swagger.json from our db.json file?
If not, do you guys know some tool to generate swagger.json file easily?
Thanks!
If you can make API calls to your 'fake' API, you can use Swagger Inspector to create an API Definition (swagger.json)! Steps:
Voila!
Don't worry, you can delete your API file immediately from SwaggerHub if you don't want your API exposed publicly (public is the only option for a free account).