4.0.0-alpha.42 • Published 3 months ago

@concepta/nestjs-swagger-ui v4.0.0-alpha.42

Weekly downloads
-
License
BSD-3-Clause
Repository
-
Last release
3 months ago

Rockets NestJS Swagger UI

Expose your OpenApi spec on your API using the powerful Swagger UI interface.

Project

NPM Latest NPM Downloads GH Last Commit GH Contrib NestJS Dep

Overview

The Swagger UI module provides a simple implementation of the @nestjs/swagger module.

Using this module, you can register the Swagger UI just like a normal module to reduce the amount of boilerplate in your main.ts.

Installation

yarn add @concepta/nestjs-swagger-ui

Usage

app.module.ts

@Module({
  imports: [
    SwaggerUiModule.register({
      settings: {
        path: 'api',
        basePath: '/v1',
      },
    }),
  ],
})
export class AppModule {}

main.ts

async function bootstrap() {
  // create app
  const app = await NestFactory.create(AppModule);
  // get the swagger ui service
  const swaggerUiService = app.get(SwaggerUiService);
  // set it up
  swaggerUiService.setup(app);
  // start listening
  await app.listen(3000);
}
bootstrap();

Configuration

All of the options in the official docs for NestJS OpenApi are supported.

To see how they are mapped to the registration options settings property, see the SwaggerUiSettingsInterface

4.0.0-alpha.42

3 months ago

4.0.0-alpha.41

3 months ago

4.0.0-alpha.40

3 months ago

4.0.0-alpha.39

3 months ago

4.0.0-alpha.38

3 months ago

4.0.0-alpha.37

4 months ago

4.0.0-alpha.36

5 months ago

4.0.0-alpha.35

5 months ago

4.0.0-alpha.34

5 months ago

4.0.0-alpha.31

6 months ago

4.0.0-alpha.30

7 months ago

4.0.0-alpha.33

6 months ago

4.0.0-alpha.32

6 months ago

4.0.0-alpha.28

7 months ago

4.0.0-alpha.27

8 months ago

4.0.0-alpha.26

8 months ago

4.0.0-alpha.25

9 months ago

4.0.0-alpha.29

7 months ago

4.0.0-alpha.24

9 months ago

4.0.0-alpha.23

1 year ago

4.0.0-alpha.22

2 years ago

4.0.0-alpha.19

2 years ago

4.0.0-alpha.20

2 years ago

4.0.0-alpha.21

2 years ago

4.0.0-alpha.17

2 years ago

4.0.0-alpha.16

2 years ago

4.0.0-alpha.15

2 years ago

4.0.0-alpha.14

2 years ago

4.0.0-alpha.18

2 years ago

4.0.0-alpha.13

2 years ago

4.0.0-alpha.12

2 years ago

4.0.0-alpha.11

2 years ago

4.0.0-alpha.9

2 years ago

4.0.0-alpha.10

2 years ago

4.0.0-alpha.8

2 years ago

4.0.0-alpha.7

2 years ago

4.0.0-alpha.6

2 years ago