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 명세 바뀐 부분 수정하기 #154

Closed
Gilpop8663 opened this issue Jul 27, 2023 · 0 comments · Fixed by #359
Closed

유저 정보 API 명세 바뀐 부분 수정하기 #154

Gilpop8663 opened this issue Jul 27, 2023 · 0 comments · Fixed by #359

Comments

@Gilpop8663
Copy link
Collaborator

Gilpop8663 commented Jul 27, 2023

✨ 추가 기능

  • 유저 정보 API 명세 바뀐 부분 수정하기

📃 세부 사항

  • UserInfoResponse의 userPoint를 point로 변경해야 함
  • User의 타입 이름을 UserInfo로 변경하여 일관성 있는 코드 작성을 제안하고자 함

현재 프론트 코드에 적용된 내용

export interface User {
  nickname: string;
  userPoint: number;
  postCount: number;
  voteCount: number;
  badge?: string;
}

export interface UserInfoResponse {
  nickname: string;
  userPoint: number;
  postCount: number;
  voteCount: number;
  badge?: string;
}

현재 변경된 API 명세

200 OK
{
	nickname: string,
	point: number,
	postCount: number,
	voteCount: number
}

4차 스프린트 기준 확정된 유저 정보 API는 아래와 같습니다.

200 OK
{
	"nickname" : "익명의유저",
	"gender" : "MALE",
	"birthYear" : 2002
	"postCount" : 10,
	"voteCount" : 5
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment