Click in order · NestJS course · Module 11: Swagger and OpenAPI

Launching Swagger in NestJS

Arrange the Swagger configuration steps in main.ts in the correct order:

Items to click

  • const app = await NestFactory.create(AppModule)
  • SwaggerModule.setup('api/docs', app, document)
  • const config = new DocumentBuilder()...build()
  • const document = SwaggerModule.createDocument(app, config)

You can check the correct answer by solving this task in the CodeWorlds game.