-
Notifications
You must be signed in to change notification settings - Fork 0
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
내 반려동물 수정 / 삭제 API를 추가합니다. #63
Conversation
cmd/server/router.go
Outdated
userApiGroup.PUT("/me/pets/{petID}", userHandler.UpdateMyPet) | ||
userApiGroup.DELETE("/me/pets/{petID}", userHandler.DeleteMyPet) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
echo docs 공식문서에는 :petID
으로 선언해야 Param으로 값을 가져올 수 있는 걸로 알고 있는데, {petID}
으로 선언해도 문제가 없나요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
앗 확인 감사합니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
제 환경에서 테스트 했을 때, {petID}
인 경우, 405 에러가 계속 반환되는데 승준님 환경에서는 문제가 없는건가요?
(:petID
했을 때는 잘 되네용)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아 커밋을 안찍었네요;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
앗 ㅋㅋㅋㅋ 확인했습니다 ㅎㅎ
588c2c5
to
8ea9d30
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏻
🙇 |
내 반려동물 수정 / 삭제 API를 추가합니다.
PUT /users/me/pets/{petID}
: 내 반려동물 수정DELETE /users/me/pets/{petID}
: 내 반려동물 삭제추가로 Pet 요청(
pet/request.go
로 분리) 및UserService
테스트 코드 리팩터링합니다.* 버전업 0.11.0 -> 0.12.0