Question · NestJS course · Module 11: Swagger and OpenAPI
Full Documentation for a GET Endpoint
Which Swagger decorators should a well-documented GET /:id endpoint have?
Answer options
- Only @ApiOperation
- Only @ApiResponse
- @ApiOperation, @ApiParam, @ApiOkResponse, and @ApiNotFoundResponse
- @ApiTags and @ApiQuery
You can check the correct answer by solving this task in the CodeWorlds game.