-
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 #25 from LeeSM0518/DVK-83-apply-swagger-to-member-api
[DVK-83] docs: 회원 API에 Swagger 적용
- Loading branch information
Showing
17 changed files
with
465 additions
and
51 deletions.
There are no files selected for viewing
6 changes: 5 additions & 1 deletion
6
src/main/kotlin/com/devooks/backend/auth/v1/domain/TokenGroup.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,9 +1,13 @@ | ||
package com.devooks.backend.auth.v1.domain | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
|
||
typealias AccessToken = String | ||
typealias RefreshToken = String | ||
|
||
data class TokenGroup( | ||
@Schema(description = "액세스 토큰") | ||
val accessToken: AccessToken, | ||
@Schema(description = "리프래시 토큰") | ||
val refreshToken: RefreshToken, | ||
) | ||
) |
5 changes: 4 additions & 1 deletion
5
src/main/kotlin/com/devooks/backend/category/v1/domain/Category.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,13 +1,16 @@ | ||
package com.devooks.backend.category.v1.domain | ||
|
||
import com.devooks.backend.category.v1.entity.CategoryEntity | ||
import io.swagger.v3.oas.annotations.media.Schema | ||
import java.util.* | ||
|
||
class Category( | ||
@Schema(description = "카테고리 식별자") | ||
val id: UUID, | ||
@Schema(description = "카테고리 이름") | ||
val name: String, | ||
) { | ||
companion object { | ||
fun CategoryEntity.toDomain() = Category(id = this.id!!, name = this.name) | ||
} | ||
} | ||
} |
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
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
Oops, something went wrong.