메소드 |
경로 |
설명 |
GET |
/user/mypage/rank |
나의 랭킹 페이지 |
Request Header
{
"Content-Type": "application/json",
"token": jwt
}
{
"status": 200,
"success": true,
"message": "랭킹 조회 성공",
"data": {
"myName": "minjeong99",
"myImage": "https://sopt-server-gain.s3.ap-northeast-2.amazonaws.com/1610174855958.jpg",
"myRank": 1,
"top10": [
{
"_id": "5ff92d73f14dd548ec29aa9e",
"name": "minjeong77",
"profileImg": "https://sopt-server-gain.s3.ap-northeast-2.amazonaws.com/1610165619560.jpg"
},
{
"_id": "5ff951882acbbe53687e667c",
"name": "minjeong99",
"profileImg": "https://sopt-server-gain.s3.ap-northeast-2.amazonaws.com/1610174855958.jpg"
},
{
"_id": "5ff92827e8976f4fc495ba73",
"name": "minjeong4"
},
{
"_id": "5ff925df17829d35ac64b38a",
"name": "minjeong3"
},
{
"_id": "5ff9254fa8f68e5398a59d77",
"name": "minjeong2"
},
{
"_id": "5ff924bfb13b8e404ccf70b6",
"name": "minjeong"
},
{
"_id": "5ff981d839aa4e383b35dd40",
"name": "gain",
"profileImg": "https://sopt-server-gain.s3.ap-northeast-2.amazonaws.com/1610187223882.jpg"
}
]
}
}
{
"status": 401,
"success": false,
"message": "토큰 값이 만료되었습니다."
}
{
"status": 401,
"success": false,
"message": "토큰 값이 없습니다."
}
{
"status": 401,
"success": false,
"message": "유효하지 않은 토큰값입니다."
}
{
"status": 600,
"success": false,
"message": "DB 오류"
}