Skip to content

Commit 3b58974

Browse files
Merge pull request #2570 from ZainUrRehmanKhan/feat(@nestjs/swagger)_support_class_decorator_in_@ApiParam/@apiquery
feat(@nestjs/swagger): Support class decorator ApiParam and ApiQuery
2 parents 337c68c + 8a401d3 commit 3b58974

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/openapi/decorators.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
All of the available OpenAPI decorators have an `Api` prefix to distinguish them from the core decorators. Below is a full list of the exported decorators along with a designation of the level at which the decorator may be applied.
44

55
| | |
6-
| ------------------------- | ------------------- |
6+
| ------------------------- |---------------------|
77
| `@ApiBasicAuth()` | Method / Controller |
88
| `@ApiBearerAuth()` | Method / Controller |
99
| `@ApiBody()` | Method |
@@ -17,11 +17,11 @@ All of the available OpenAPI decorators have an `Api` prefix to distinguish them
1717
| `@ApiHideProperty()` | Model |
1818
| `@ApiOAuth2()` | Method / Controller |
1919
| `@ApiOperation()` | Method |
20-
| `@ApiParam()` | Method |
20+
| `@ApiParam()` | Method / Controller |
2121
| `@ApiProduces()` | Method / Controller |
2222
| `@ApiProperty()` | Model |
2323
| `@ApiPropertyOptional()` | Model |
24-
| `@ApiQuery()` | Method |
24+
| `@ApiQuery()` | Method / Controller |
2525
| `@ApiResponse()` | Method / Controller |
2626
| `@ApiSecurity()` | Method / Controller |
2727
| `@ApiTags()` | Method / Controller |

0 commit comments

Comments
 (0)