Question · NestJS course · Module 11: Swagger and OpenAPI

The @ApiParam Decorator

When do we use the @ApiParam() decorator in a NestJS controller?

Answer options

  • To describe query parameters after the ? sign
  • To describe HTTP headers
  • To describe the request body
  • To describe route parameters in the URL path

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