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

Creating a Versioned API with Swagger

Order the steps for creating a versioned API with separate Swagger documents:

Items to put in order

  • app.enableVersioning()
  • SwaggerModule.createDocument with include option
  • SwaggerModule.setup for each version
  • DocumentBuilder for each version

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