윌스너 채팅목록 - Willson-2019/Willson-Server GitHub Wiki

URL

[GET] ~/api/v1/willsoner/chat/chatrooms

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

응답예시

성공

{
    "code": "success",
    "message": "success",
    "data": {
        "count": 1,
        "ing": [
            {
                "idx": 18236,
                "roomkey": "1205312339_SrIE0U2lHWcbtJvBFl3cXClRsY02_1605158334584",
                "concern": {
                    "nickname": "데이지의  루시",
                    "time": "1",
                    "idx": 1468,
                    "content": "ㅎㅎㅎㅎ좋아요",
                    "asker": {
                        "gender": "여",
                        "pic": "https://willson-v1.s3.ap-northeast-2.amazonaws.com/user_image/img_profile_w.png",
                        "id": "CLIUm7iNKgch5VHSAARQ2xkZuG93"
                    },
                    "subcategory": {
                        "name": "갈등",
                        "category": {
                            "name": "연애"
                        }
                    },
                    "feelings": [
                        {
                            "name": "불쾌한"
                        },
                        {
                            "name": "절망감"
                        },
                        {
                            "name": "우울한"
                        }
                    ]
                },
                "willsoner": {
                    "idx": 150,
                    "asker": {
                        "pic": "https://willson-v1.s3.ap-northeast-2.amazonaws.com/user_image/img_profile_w.png",
                        "id": "SrIE0U2lHWcbtJvBFl3cXClRsY02"
                    }
                },
                "start": 1605158334584
            }
        ],
        "reserve": []
    }
}

access token이 만료된 경우

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

결과를 찾지 못한 경우

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