HACKER Q&A
📣 devfatigue

Node.js API Documentation


What do you use to get a swagger.json or similar for api documentation?

In the dotnet world there is swashbuckle. Is there a node equivalent or better?


  👤 Raed667 Accepted Answer ✓
I have been using tsoa to generate API documentation from TypeScript types. https://github.com/lukeautry/tsoa

Example project: https://github.com/RaedsLab/demo-project/blob/master/backend...


👤 Sheepsteak
I think the official swagger-node (https://github.com/swagger-api/swagger-node) hasn't been updated for a while. There is swagger-jsdoc (https://www.npmjs.com/package/swagger-jsdoc) though.