v2 윌스너 마이페이지홈 - Willson-2019/Willson-Server GitHub Wiki

URL

[GET] ~/api/v2/willsoner/mypage/home

REQUEST PARAMETER NAME DESCRIPTION
header x-token 엑세스 토큰 access token

recent_refund_status 최신 환불 상태 waiting: 대기 중, complete: 완료, rejected: 반려


응답예시

성공

{
    "code": "success",
    "message": "success",
    "data": {
        "gender": "남",
        "pic": "https://willson-v1.s3.ap-northeast-2.amazonaws.com/user_image/img_profile_m.png",
        "nickname": "포스트맨",
        "email": "[email protected]",
        "willsoner": {
            "avg_rating": "4.5",
            "introduction": "윌슨 하이염",
            "auth": 60,
            "image": {
                "name": "지혜로운 인생선배",
                "pictures": [
                    {
                        "type": "M",
                        "profile": "https://willson-v1.s3.ap-northeast-2.amazonaws.com/characters/img_profile_blue_m.png",
                        "color_full_card": "https://willson-v1.s3.ap-northeast-2.amazonaws.com/characters/img_willsoner_blue_m_bg.png"
                    }
                ]
            },
            "keywords": [
                {
                    "idx": 2487,
                    "name": "졸려"
                },
                {
                    "idx": 2488,
                    "name": "키워드"
                }
            ],
            "subcategories": [
                {
                    "idx": 1,
                    "name": "이별"
                },
                {
                    "idx": 2,
                    "name": "갈등"
                },
                {
                    "idx": 3,
                    "name": "썸"
                }
            ]
        },
        "point": {
            "coin": "76,101 C",
            "honeypot": "0개"
        },
        "asker_alert": {
            "unread_notice": 0,
            "recent_refund_status": "rejected"
        }
    }
}

access token이 만료된 경우

{
    "code": "access_token_expired",
    "message": "Access token expired"
}

결과를 찾지 못한 경우

{
    "code": "not_found",
    "message": "Result not found"
}