1

Swagger specification document is not being generated from Swagger integration into Node.js project as a sub project. However, SwaggerUI is up and running. If we provide say swagger.json or api-docs.json file then it is rendering specified REST API calls. My requirement is to generate the API document for existing project. How do I do it ?

surendrapanday
  • 530
  • 3
  • 13
Vaibhav Jain
  • 2,155
  • 5
  • 27
  • 41

1 Answers1

0

See this answer for help in deciding how to generate Swagger docs for a project.

You can either manually create the docs for your API and have Swagger UI serve them, or you can use a node package like swagger-node-express which will do most of the documenting automatically. See the link above for pros and cons of each of these options.

Community
  • 1
  • 1
Mike
  • 10,297
  • 2
  • 21
  • 21
  • I have tried swagger-node-express that before, but I am not able to get the documentation also it doesn't through any meaningful error. I am looking for some utility that will read all my routes and create the API doc automatically. – Vaibhav Jain Feb 19 '16 at 09:46