• Top
  • New

Ask HN: Node.js API Documentation

by devfatigue on 5/24/2021, 8:36:44 PM with 4 comments
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?

  • by Raed667 on 5/25/2021, 5:10:29 AM

    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...

  • by Sheepsteak on 5/24/2021, 9:34:37 PM

    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.