npm

Need private packages and team management tools?Check out npm Orgs. »

nest-swagger

0.4.0 • Public • Published

Swagger for Nest

Quick start

  • install
npm install nest-swagger
  • add swagger.config.json
    {
        "swagger": {
            "outputDirectory": "./dist",
            "entryFile": "./src/main.ts",
            "name": "your app name",
            "description": "description",
            "license": "MIT",
            "produces": ["application/json"],
            "version": "0.0.1"
        }
    }
  • add npm script
    "swagger": "swaggerGen -c ./swagger.config.json",
  • run npm script
    npm run swagger

you can find the output generated swagger.json and swagger.yaml

examples project

https://github.com/vellengs/nestx-server

install

npm i nest-swagger

Downloadsweekly downloads

1

version

0.4.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability