Nest框架的OpenAPI(Swagger)模块(node.js)
安装
$ npm install --save @nestjs/swagger swagger-ui-express
$ npm install --save @nestjs/swagger fastify-swagger
请注意4.0版本中的以下中断/API更改。
以下装饰器已更改/重命名:
V3 | V4 | |
---|---|---|
@Api |
@ApiProperty | |
@Api |
@ApiPropertyOptional | |
@ApiResponse |
@ApiResponseProperty |