Question · NestJS course · Module 11: Swagger and OpenAPI

The addTag Method in DocumentBuilder

What does the addTag() method do in DocumentBuilder?

Answer options

  • Adds an HTML tag to the documentation page
  • Sets an HTTP header for the response
  • Marks an endpoint as public
  • Groups endpoints into logical sections in Swagger UI

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