diff --git a/BE/src/auth/dto/profile-response.dto.ts b/BE/src/auth/dto/profile-response.dto.ts index e134876d..5363aaa8 100644 --- a/BE/src/auth/dto/profile-response.dto.ts +++ b/BE/src/auth/dto/profile-response.dto.ts @@ -1,9 +1,14 @@ +import { ApiProperty } from '@nestjs/swagger'; + export class ProfileResponseDto { constructor(name, email) { this.name = name; this.email = email; } + @ApiProperty({ description: '사용자 이름' }) name: string; + + @ApiProperty({ description: '사용자 이메일' }) email: string; } diff --git a/BE/src/stock/list/stock-list.controller.ts b/BE/src/stock/list/stock-list.controller.ts index 4db69192..e0ebb13c 100644 --- a/BE/src/stock/list/stock-list.controller.ts +++ b/BE/src/stock/list/stock-list.controller.ts @@ -22,6 +22,11 @@ export class StockListController { description: '모든 주식 종목 리스트를 조회한다.', }) @Get() + @ApiResponse({ + status: 200, + description: '주식 종목 리스트 조회 성공', + type: [StockListResponseDto], + }) async findAll(): Promise { return this.stockListService.findAll(); }