Skip to content

Commit

Permalink
♻️ refactor: api 명세 나머지 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
sieunie committed Nov 21, 2024
1 parent 7e7188b commit 0ff18f9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions BE/src/auth/dto/profile-response.dto.ts
Original file line number Diff line number Diff line change
@@ -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;
}
5 changes: 5 additions & 0 deletions BE/src/stock/list/stock-list.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ export class StockListController {
description: '모든 주식 종목 리스트를 조회한다.',
})
@Get()
@ApiResponse({
status: 200,
description: '주식 종목 리스트 조회 성공',
type: [StockListResponseDto],
})
async findAll(): Promise<StockListResponseDto[]> {
return this.stockListService.findAll();
}
Expand Down

0 comments on commit 0ff18f9

Please sign in to comment.