-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from LeeSM0518/DVK-63-apply-swagger-to-ebook-api
[DVK-63] fix: 전자책 API에 Swagger 적용
- Loading branch information
Showing
21 changed files
with
591 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
src/main/kotlin/com/devooks/backend/auth/v1/dto/CheckEmailResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
package com.devooks.backend.auth.v1.dto | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
|
||
data class CheckEmailResponse( | ||
@Schema(description = "결과 메시지", example = "이메일 인증이 완료됐습니다.") | ||
val message: String = "이메일 인증이 완료됐습니다." | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
src/main/kotlin/com/devooks/backend/auth/v1/dto/LogoutResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
package com.devooks.backend.auth.v1.dto | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
|
||
data class LogoutResponse( | ||
@Schema(description = "결과 메시지", example = "로그아웃이 완료됐습니다.") | ||
val message: String = "로그아웃이 완료됐습니다." | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/main/kotlin/com/devooks/backend/common/exception/ErrorResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.devooks.backend.common.exception | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
import java.util.* | ||
|
||
class ErrorResponse( | ||
@Schema(description = "에러 발생 날짜", example = "2024-11-04T05:05:43.264+00:00") | ||
val timestamp: Date, | ||
@Schema(description = "에러 발생 API 경로", example = "/api/v1/ebook-inquiry-comments") | ||
val path: String, | ||
@Schema(description = "에러 상태 코드", example = "400") | ||
val status: Int, | ||
@Schema(description = "에러 유형", example = "BAD_REQUEST") | ||
val error: String, | ||
@Schema(description = "요청 식별자", example = "ebad5bcb-5") | ||
val requestId: String, | ||
@Schema(description = "에러 코드", example = "EBOOK-400-11") | ||
val code: String, | ||
@Schema(description = "에러 메시지", example = "문의 식별자가 반드시 필요합니다.") | ||
val message: String, | ||
) |
Oops, something went wrong.