API documentation generator based on jsdoc comments for express
npm install express-autodoc

``bash
npm install express-autodoc --save-dev
`
`js`
/**
* @description Get songs
* @queryParam (title) The song title
* @pathParam (:albumId) album UUID
* @produces application/json, application/xml
*/
app.get('/api/albums/:albumId/songs', (req, res) => (
res.json({
title: req.title,
})
));
`bash`
node -e 'require("express-autodoc").generateSwagger(".")'
| Tag | Format | Example |
|-------------------|:-------------------------------------------------------------------------------------:|-----------------------------------------:|
| @queryParam | (\ |/* @pathParam (:id) song Id /
| @pathParam | (\<:name\>) \ |/* @produces application/json /
| @produces | \| |/* @description A description /
| @description | \ |/ @body {} /
| @body, @request | \ [{"example": "object"} | / @body #definitions/Song / |/ @response {} /
| @response | \ / @response #definitions/Song /` |