Skip to content

[GET] 친구 리스트 조회

Gyunny edited this page Jun 7, 2021 · 3 revisions
메소드 경로 설명
GET /api/v2/users/{userId}/friends 친구 리스트 조회

예시

http://{{base_url}}/api/v2/users/1/friends // 1번 user의 친구 리스트 조회

Response

< Success >

{
    "status": 200,
    "message": "친구 목록입니다.",
    "data": [
        {
            "userId": 137,
            "email": "[email protected]",
            "nickName": null,
            "intro": "친구리스트 테스트",
            "profileUrl": "sdsdsdsdsd",
            "friendStatus": 2
        },
        {
            "userId": 4,
            "email": "[email protected]",
            "nickName": null,
            "intro": "규니",
            "profileUrl": "urll~~",
            "friendStatus": 2
        }
    ]
}

< Fail >

  • 서버 에러
{
    "message": "Server Error",
    "status": 500,
    "errors": [],
    "code": "C004"
}