ApiBody()
Swagger 데코레이터
body로 넘겨줄 형태(스키마)를 지정
*dto가 class 형태: dto형식 입력
dto가 interface형태: entity 객체명 입력
ApiCreatedResponse()
Swagger 데코레이터
생성 완료에 대한 응답을 정의함
description: 설명 작성
type: entity 객체명 작성
'개발 > Swagger' 카테고리의 다른 글
[Swagger] 파비콘, 타이틀 커스터마이징 (2) | 2025.07.01 |
---|---|
Swagger에서 ApiOkResponse(), ApiOperation(), ApiTags()의 역할 (0) | 2023.04.05 |