0

I am facing the problem in setting up Swagger. How can I implement Swagger to in my node-express project to write API Doc for existing APIs? I have looked swagger, swagger-ui, and swagger-ui-dist npm packages. But not getting the desired output. I want to use Swagger UI but getting counfused in the confugurations. Can anybody tell me the step by step guide for the configuration? Need help.

Asad Marfani
  • 177
  • 3
  • 13

2 Answers2

0

A good option for beginners is to install the Swagger NPM package https://www.npmjs.com/package/swagger and follow the instructions.

Overview:

// install
npm install -g swagger

// create a new project
swagger project create hello-world

// edit your API using the Swagger UI
swagger project edit

Then follow the rest of the instructions on how to code up your controllers.

GreensterRox
  • 6,432
  • 2
  • 27
  • 30
0

After basic installation:

Here is a STEP-BY-STEP guide.

Hope this is what you are looking for.

Harshal Yeole
  • 4,812
  • 1
  • 21
  • 43