npm i glob swagger-jsdoc swagger-ui-express @types/swagger-jsdoc @types/swagger-ui-express
npm update
npm run dev
npm run build
The swagger.json file can be retrieved at http://localhost:3000/swagger.json
- No post-editing to the generated OpenAPI documentation is required.
- Steep learning curve on OpenAPI specification is required as the correct format must be used when annotating the source code.