Can Swagger autogenerate its yaml based on existing express routes?

前端 未结 4 1891
[愿得一人]
[愿得一人] 2020-12-12 14:26

I inherited an existing API and I would like to document it with swagger, but I don\'t yet know the full scope of it. Can Swagger (or another middleware/tool) auto-magically

4条回答
  •  情深已故
    2020-12-12 14:50

    Yes !!!. You can use this awesome project typescript-test. Here is sample app. Clone it, run npm i,npm run swagger and go to /dist/swagger.json. Done. Swagger yaml and json is generated based on express routes !

提交回复
热议问题