Skip to content

랭킹 탑10 조회

meanjung edited this page Jan 9, 2021 · 2 revisions

메소드 경로 설명
GET /user/mypage/rank 나의 랭킹 페이지

Image

android_bookstore_recommend

Request Header

{
    "Content-Type": "application/json",
    "token": jwt
}

Response Body

< Success >

{
    "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"
            }
        ]
    }
}

< Fail >

  • EXPIRED TOKEN
{
    "status": 401,
    "success": false,
    "message": "토큰 값이 만료되었습니다."
}
  • EMPTY TOKEN
{
    "status": 401,
    "success": false,
    "message": "토큰 값이 없습니다."
}
  • INVALID TOKEN
{
    "status": 401,
    "success": false,
    "message": "유효하지 않은 토큰값입니다."
}
  • DB 오류
{
    "status": 600,
    "success": false,
    "message": "DB 오류"
}