Skip to content

Commit

Permalink
refactor: Comment API URL 변경 사항 반영
Browse files Browse the repository at this point in the history
URI에 남아있는 moment를 staccato로 변경
- 버저닝을 위해 comments 경로에 /v2 추가
- momentId -> staccatoId 로 변경
  • Loading branch information
Junyoung-WON committed Feb 1, 2025
1 parent 4700f91 commit 9f81e89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ interface CommentApiService {
): ApiResult<Unit>

companion object {
private const val COMMENTS_URI = "/comments"
private const val STACCATO_ID = "momentId"
private const val COMMENTS_URI = "/comments/v2"
private const val STACCATO_ID = "staccatoId"
private const val COMMENT_ID = "commentId"
private const val COMMENTS_URI_WITH_COMMENT_ID = "$COMMENTS_URI/{$COMMENT_ID}"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import kotlinx.serialization.Serializable

@Serializable
data class CommentRequest(
@SerialName("momentId") val staccatoId: Long,
@SerialName("staccatoId") val staccatoId: Long,
@SerialName("content") val content: String,
)

0 comments on commit 9f81e89

Please sign in to comment.