Question · NestJS course · Module 11: Swagger and OpenAPI

Deprecated Endpoint in Swagger

How do you mark an endpoint as deprecated in @ApiOperation?

Answer options

  • @ApiOperation({ removed: true })
  • @ApiOperation({ obsolete: true })
  • @ApiOperation({ disabled: true })
  • @ApiOperation({ deprecated: true })

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