装饰器 Decorators

所有可用的 OpenAPI 装饰器都有一个`Api`前缀,以区别于核心装饰器。下面是导出装饰器的完整列表,以及装饰器可应用的级别。

@ApiBasicAuth()Method / Controller
@ApiBearerAuth()Method / Controller
@ApiBody()Method
@ApiConsumes()Method / Controller
@ApiCookieAuth()Method / Controller
@ApiExcludeController()Controller
@ApiExcludeEndpoint()Method
@ApiExtension()Method
@ApiExtraModels()Method / Controller
@ApiHeader()Method / Controller
@ApiHideProperty()Model
@ApiOAuth2()Method / Controller
@ApiOperation()Method
@ApiParam()Method
@ApiProduces()Method / Controller
@ApiProperty()Model
@ApiPropertyOptional()Model
@ApiQuery()Method
@ApiResponse()Method / Controller
@ApiSecurity()Method / Controller
@ApiTags()Method / Controller