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에 대한 리팩터링을 한다. #66

Closed
7 tasks done
devFancy opened this issue Aug 20, 2023 · 0 comments · Fixed by #67, #69 or #72
Closed
7 tasks done

프로필 전체 API에 대한 리팩터링을 한다. #66

devFancy opened this issue Aug 20, 2023 · 0 comments · Fixed by #67, #69 or #72
Assignees
Labels
기능 추가 새로운 기능 추가 리팩토링 코드 리팩토링

Comments

@devFancy
Copy link
Member

devFancy commented Aug 20, 2023

구현할 기능

구현할 기능에 대해 설명해 주세요.

  • 프로필 등록에 대한 API 기능을 수정한다.
  • 프로필 조회/수정에 대한 API 기능을 수정한다.
  • 타인 프로필 조회에 대한 API 기능을 수정한다.

세부 작업 내용

PR #67

  • 프로필 등록/수정할 때 닉네임 중복 여부에 대한 확인하는 예외 처리를 추가한다.
  • 프로필 등록할 때 성격 전체 리스트(24개)를 보여주는 api를 추가한다.
  • 프로필 조회(GET)에 대한 api(/api/profiles/me/{profileId})에서 profileId 값은 Client에서 알 수 없기 때문에 해당 부분은 memberId 값으로만 나오도록 수정한다.
  • 프로필 수정(PUT)에 대한 api(/api/profiles/me/{profileId})에서 profileId 값은 Client에서 알 수 없기 때문에 해당 부분은 memberId 값으로 구분하도록 수정한다.

PR #69

  • 타인 프로필 조회에 대한 api(/api/profiles/other/{profileId})에서 필수/선택 값 구분한다.
  • 본인/타인 프로필 조회시 서브 이미지(subImg)도 나오도록 수정한다.
  • 타인 프로필 조회시 null 값에 대한 에러를 처리한다.

참고 자료

#55 -> DB에 저장할 때 null값이 안나오도록 해결하는 방법을 찾았다.

예상 소요 시간

  • 6시간
@devFancy devFancy added 리팩토링 코드 리팩토링 기능 추가 새로운 기능 추가 labels Aug 20, 2023
@devFancy devFancy added this to the 프로필 기능 구현 milestone Aug 20, 2023
@devFancy devFancy self-assigned this Aug 20, 2023
@devFancy devFancy changed the title [프로필] 프로필 API에 대한 리팩터링을 한다. 프로필 전체 API에 대한 리팩터링을 한다. Aug 20, 2023
@devFancy devFancy moved this to Done in hibit-team Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment