Skip to content

Commit 5bb7cbb

Browse files
committed
Docs: getCommit API Swagger 에 500에러 추가
1 parent e13ec67 commit 5bb7cbb

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/main/java/io/ejangs/docsa/domain/commit/swagger/GetCommitDocs.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,26 @@
131131
}
132132
)
133133
),
134+
@ApiResponse(
135+
responseCode = "500",
136+
description = "기록 조회 실패 - MySQL 또는 MongoDB 데이터 처리 실패",
137+
content = @Content(
138+
schema = @Schema(implementation = ErrorResponse.class),
139+
mediaType = MediaType.APPLICATION_JSON_VALUE,
140+
examples = {
141+
@ExampleObject(
142+
name = "MySQL 또는 MongoDB 데이터 처리 실패",
143+
value = """
144+
{
145+
"status": 500,
146+
"message": "데이터 처리 중 오류가 발생했습니다. 잠시 후 다시 시도해주세요.",
147+
"error": "DATABASE_ERROR"
148+
}
149+
"""
150+
)
151+
}
152+
)
153+
)
134154
}
135155
)
136156
public @interface GetCommitDocs {

0 commit comments

Comments
 (0)