Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Refactor] JSON으로 전환 #96

Open
wants to merge 3 commits into
base: albertimkr
Choose a base branch
from

Conversation

AlbertImKr
Copy link
Collaborator

@AlbertImKr AlbertImKr commented Mar 6, 2025

수정 사항

  • HTTP 응답 및 요청의 텍스트 형식이 가독성이 떨어져 JSON으로 변경하였습니다.

@AlbertImKr AlbertImKr requested a review from Hyune-c March 6, 2025 13:17
}
return shortenedUrlRepository.save(ShortenedUrl(originUrl)).id!!
return ShortenedUrlResponse(shortenedUrlRepository.save(ShortenedUrl(originUrl)).id!!)
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit 비즈니스 레이어에 프레젠테이션 레이어의 객체가 있는 것은 선호하지 않습니다.

.expectBody(String::class.java)
.isEqualTo(originUrl)
.expectBody(OriginUrlResponse::class.java)
.isEqualTo(OriginUrlResponse(originUrl))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fyi. jsonPath

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants