Ask HN: Node.js API Documentation

by devfatigueon 5/24/2021, 8:36 PMwith 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 Raed667on 5/25/2021, 5:10 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 Sheepsteakon 5/24/2021, 9:34 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.