myInfo

information of myAccount

GET /members/{memberId}

<Description of the endpoint>

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Response

{
  "memberId": 1,
  "studentNumber": 1989001,
  "school": "ewha womans university",
  "nickname": "fubi",
  "email": "efub@gmail.com",
  "signupDate": 2023-07-26 01:06:55.323,
  "updatedDate": 2023-07-26 01:06:55:323,
}

피드백 받은 내용

  • 회원 조회의 경우 password 같은 민감한 정보는 넘겨주지 않는 것이 좋습니당

  • 201 코드는 주로 새 리소스 작성의 경우 사용하기 때문에 회원 조회의 경우 200이 더 알맞아요!

  • ‘회원 조회’이기 때문에 404 Not found(존재하지 않는 id의 경우)도 넘겨주면 좋을 것 같습니다

Last updated