0.2.4 • Published 8 months ago

nestjs-quick-swagger v0.2.4

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
8 months ago

Features

  • Quick and easy setup for Swagger in NestJS applications.
  • Automatically generates API documentation based on your decorators.
  • Highly customizable to fit your application's needs.
  • Supports OpenAPI 3.x.

Installation

# Using npm
$ npm install nestjs-quick-swagger --save

# Using yarn
$ yarn add nestjs-quick-swagger

Configuration

SWAGGER env vars

SWAGGER_TITLE="QUICK SWAGGER"

SWAGGER_DESCRIPTION="QUICK SWAGGER API"

SWAGGER_VERSION="1.0"

SWAGGER_TAGS="Template"

SWAGGER_AUTH_USERNAME="test"

SWAGGER_AUTH_PASSWORD="test@123"

SWAGGER_CONTACT_NAME='sandeepmehta.com'

SWAGGER_CONTACT_EMAIL='mehta2155@gmail.com'

SWAGGER_CONTACT_URL='https://sandeepmehta.com/login'

SWAGGER_PROJECT_DETAILS='https://github.com/sandeepmehta2155/discovery-service'

SWAGGER_LOCAL_ENDPOINT='http://localhost:4000/'

SWAGGER_STAG_ENDPOINT='https://sandeepmehta.com/apis'

Usage

const app = await NestFactory.create(AppModule);

SwaggerModule.setup('/apis/docs', app, createDocument(app));

await app.listen(3005);

Resources

Check out a few resources that may come in handy when working with NestJS:

  • Visit the NestJS Documentation to learn more about the framework.
  • For questions and support, please visit our Discord channel.
  • To dive deeper and get more hands-on experience, check out our official video courses.
  • Visualize your application graph and interact with the NestJS application in real-time using NestJS Devtools.
  • Need help with your project (part-time to full-time)? Check out our official enterprise support.
  • To stay in the loop and get updates, follow us on X and LinkedIn.
  • Looking for a job, or have a job to offer? Check out our official Jobs board.

Stay in touch

0.2.4

8 months ago

0.2.3

8 months ago

0.2.2

8 months ago

0.2.1

8 months ago

0.2.0

8 months ago

0.1.9

8 months ago

0.1.8

8 months ago

0.1.7

8 months ago

0.1.6

8 months ago

0.1.5

8 months ago

0.1.4

8 months ago

0.1.3

8 months ago

0.1.2

8 months ago

0.1.1

8 months ago

0.1.0

8 months ago

0.0.8

8 months ago

0.0.7

8 months ago

0.0.6

8 months ago

0.0.5

8 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago