Let's start getting our most important dependency, Swagger. Remember that we will use NPM to download Swagger, because we will use it on a ExpressJS API. Swagger has its own implementation depending on the platform you need to document.
There are two very famous swagger implementations to integrate with an ExpressJS application:
The swagger-node-express is the official Swagger module for Node. Some of the most interesting (and not so) characteristics of this library are as follows:
- Official distribution of the Swagger API. We are fully supported by an organization working actively on the development of the product.
- It is open source.
- Comes with Swagger Editor and Swagger Codegen. ...