Remove package swagger-autogen, these are the reasons:
It looks too messy to write swagger specification in each controller as comments.
I feel a strong cognitive load while writing the comments to meet swagger specification in each controller, so I write a swagger.json file.
Automatically generating swagger json file is a great practice for developers, but codes should look clean and be easily read. I will look for some way to do an automatic generating process.
swagger-ui-express reads the swagger.json file and generates Swagger UI.
swagger-autogen
, these are the reasons:swagger.json
file.swagger-ui-express
reads theswagger.json
file and generates Swagger UI.