Skip to content

회원정보 조회

ktyu edited this page Jan 2, 2019 · 2 revisions

회원정보 조회

메소드 경로 설명
GET /users/edit 회원정보 조회

요청 헤더

Authorization : 토큰

요청 바디



응답 바디

조회 성공 - "password" 와 newPassword" 두 키의 값은 항상 null

{
    "status": 200,
    "message": "회원정보 조회 성공",
    "data": {
        "nickname": "바뀐이름2",
        "email": "[email protected]",
        "password": null,
        "profileUrl": null,
        "newPassword": null
    }
}

헤더에 토큰이 아예 없는 경우

{
    "status": 401,
    "message": "인증 실패: 토큰 없음",
    "data": null
}

토큰이 유효하지 않은 경우 (헤더의 Authorization 키가 존재하지만 토큰 디코딩에 실패)

{
    "status": 403,
    "message": "인가 실패: 유효하지 않은 토큰",
    "data": null
}

서버 내부 에러

{
    "status": 500,
    "message": "서버 내부 에러",
    "data": null
}

데이터베이스 에러

{
    "status": 600,
    "message": "데이터베이스 에러",
    "data": null
}
Clone this wiki locally