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

fix: 학습지 구독 취소 URI 변경 #74

Closed
wants to merge 1 commit into from
Closed

fix: 학습지 구독 취소 URI 변경 #74

wants to merge 1 commit into from

Conversation

hun-ca
Copy link
Member

@hun-ca hun-ca commented Jun 22, 2024

🎫 연관 이슈

resolved #70

💁‍♂️ PR 내용

🙏 작업

🙈 PR 참고 사항

📸 스크린샷

🤖 테스트 체크리스트

  • 체크 미완료
  • 체크 완료

@hun-ca hun-ca added documentation 문서와 관련된 내용을 다룰 때 사용됩니다 fix 기능을 고칠 때 사용됩니다 labels Jun 22, 2024
@hun-ca hun-ca self-assigned this Jun 22, 2024
@hun-ca hun-ca requested a review from belljun3395 as a code owner June 22, 2024 12:52
Copy link
Member Author

@hun-ca hun-ca left a comment

Choose a reason for hiding this comment

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

변경사항 확인되면 이건 바로 머지할게요

Comment on lines -165 to +176
@DisplayName("[DELETE] /api/v1/workbooks/{workbookId}/csubs")
@DisplayName("[POST] /api/v1/workbooks/{workbookId}/unsubs")
fun cancelSubWorkBook() {
// given
val api = "CancelSubWorkBook"
val uri = UriComponentsBuilder.newInstance()
.path("$BASE_URL/{workbookId}/csubs")
.path("$BASE_URL/{workbookId}/unsubs")
.build()
.toUriString()
// set usecase mock
val body = objectMapper.writeValueAsString(CancelSubWorkBookBody(email = "[email protected]", opinion = "취소합니다."))
val body = objectMapper.writeValueAsString(
CancelSubWorkBookBody(email = "[email protected]", opinion = "취소합니다.", reason = "이유없음")
)
Copy link
Member Author

Choose a reason for hiding this comment

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

body에 reason 추가하고 URL, method 변경

Copy link
Collaborator

Choose a reason for hiding this comment

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

opinion이랑 reason이랑 동일해 보이는데 추가한 이유가 있나요?

@hun-ca hun-ca closed this Jun 22, 2024
@hun-ca
Copy link
Member Author

hun-ca commented Jun 22, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation 문서와 관련된 내용을 다룰 때 사용됩니다 fix 기능을 고칠 때 사용됩니다
Projects
None yet
Development

Successfully merging this pull request may close these issues.

학습지 구독 및 취소 1차 구현
2 participants