-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/Refactor: 유저 이름 변경 기능 추가 및 리팩토링 #38
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
The head ref may contain hidden characters: "feat/#28-\uC720\uC800\uC815\uBCF4\uBC0F\uCF54\uC2A4\uBAA9\uB85D\uC870\uD68C"
Conversation
makourse/account/urls.py
Outdated
| path('logout/', LogoutAPIView.as_view(), name='logout'), # 로그아웃 | ||
| path('profile-image/update', ProfileAPIView.as_view(), name='profile-image-update'), # 프로필 사진 업로드 (post) | ||
| path('profile-image/reset', ProfileAPIView.as_view(), name='profile-image-reset'), # 프로필 기본 이미지로 변경 (patch) | ||
| path('profile/update', ProfileAPIView.as_view(), name='profile-update'), # 프로필 수정 (patch) |
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.
profile에서 이름과 사진을 모두 변경 가능한 api여서 url 이름을 바꿔주었습니다
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.
변경한 이름이 맞는거 같슴다
makourse/account/urls.py
Outdated
| path('profile-image/update', ProfileAPIView.as_view(), name='profile-image-update'), # 프로필 사진 업로드 (post) | ||
| path('profile-image/reset', ProfileAPIView.as_view(), name='profile-image-reset'), # 프로필 기본 이미지로 변경 (patch) | ||
| path('profile/update', ProfileAPIView.as_view(), name='profile-update'), # 프로필 수정 (patch) | ||
| path('profile/image-reset', ProfileAPIView.as_view(), name='profile-image-reset'), # 프로필 기본 이미지로 변경 (post) |
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.
profile이라는걸로 하나 묶고 /image-reset하는게 더 보기 편할거 같아서 변경해주었어요!
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.
이거 그냥 하나의 url로 해도 괜찮지 않나요? POST/ GET/PATCH 사용하는거 같은데.. 뭔가 구분하기 어려울라나?
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.
아 그렇네요.. 어떻게 할까요..? 하나로 해야 swagger에도 여러개로 안나올거 같은데 프론트에서만 잘 구별만 해준다면..
swagger를 보면서 한다면 3개를 하나로 (profile) 묶어도 괜찮을거 같아요
그렇게 수정할까요?
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.
그렇게 하시죠!
아니 근데 왜 안나오지
Related issue 🚀
Work Description 💚
PR 참고 사항