Integrating swagger into Spring boot project was much more easier than adding it to a node.js project. In spring boot, all I need to do is to create a swagger config file and it automatically handles the rest. I wish there was something similar for node.js apps.