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

내 반려동물 수정 / 삭제 API를 추가합니다. #63

Merged
merged 6 commits into from
Apr 15, 2024

Conversation

litsynp
Copy link
Contributor

@litsynp litsynp commented Apr 14, 2024

내 반려동물 수정 / 삭제 API를 추가합니다.

  • PUT /users/me/pets/{petID}: 내 반려동물 수정
  • DELETE /users/me/pets/{petID}: 내 반려동물 삭제

추가로 Pet 요청(pet/request.go로 분리) 및 UserService 테스트 코드 리팩터링합니다.

* 버전업 0.11.0 -> 0.12.0

@litsynp litsynp added the feat New feature label Apr 14, 2024
@litsynp litsynp requested a review from barabobBOB April 14, 2024 14:56
@litsynp litsynp self-assigned this Apr 14, 2024
@litsynp litsynp added refactor Outer changes to codes release New release labels Apr 14, 2024
@litsynp
Copy link
Contributor Author

litsynp commented Apr 14, 2024

반려동물 수정 API

@litsynp
Copy link
Contributor Author

litsynp commented Apr 14, 2024

반려동물 삭제 API

Comment on lines 111 to 112
userApiGroup.PUT("/me/pets/{petID}", userHandler.UpdateMyPet)
userApiGroup.DELETE("/me/pets/{petID}", userHandler.DeleteMyPet)
Copy link
Member

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} 으로 선언해도 문제가 없나요?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

앗 확인 감사합니다!

Copy link
Member

Choose a reason for hiding this comment

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

제 환경에서 테스트 했을 때, {petID}인 경우, 405 에러가 계속 반환되는데 승준님 환경에서는 문제가 없는건가요?

(:petID 했을 때는 잘 되네용)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

아 커밋을 안찍었네요;

Copy link
Member

Choose a reason for hiding this comment

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

앗 ㅋㅋㅋㅋ 확인했습니다 ㅎㅎ

Copy link
Member

@barabobBOB barabobBOB left a comment

Choose a reason for hiding this comment

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

👍🏻

@litsynp
Copy link
Contributor Author

litsynp commented Apr 15, 2024

🙇

@litsynp litsynp merged commit a28d9b0 into main Apr 15, 2024
1 check passed
@litsynp litsynp deleted the feat/update-and-delete-my-pet branch April 15, 2024 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature refactor Outer changes to codes release New release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants