Skip to content

hashtag 관련 API 예시 공유 #121

@ryuseongryong

Description

@ryuseongryong

1. /muscial/정글북 : 상세페이지 요청에 대한 응답

{
    "data": {
        "id": 13,
        "code": "PF177939",
        "title": "정글북",
        "thumbnail": "http://www.kopis.or.kr/upload/pfmPoster/PF_PF177939_210804_095959.gif",
        "contents": "아~~~~~~~~~아아아~~~~~~~~~~~아~~~~아아아아아아~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~",
        "state": "공연완료",
        "actors": "타잔",
        "numbersData": [
            {
                "id": 37,
                "title": "티모시",
                "videoId": "youtube.com"
            }
        ],
        "hashtagsData": [
            {
                "id": 37,
                "name": "판타지",
                "likeCount": 1,
                "totalLikeCount": 3,
                "musicalCount": 3
            },
            {
                "id": 38,
                "name": "혼자",
                "likeCount": 1,
                "totalLikeCount": 4,
                "musicalCount": 4
            },
            {
                "id": 39,
                "name": "#타잔",
                "likeCount": 1,
                "totalLikeCount": 1,
                "musicalCount": 1
            },
            {
                "id": 46,
                "name": "#킹콩",
                "likeCount": 1,
                "totalLikeCount": 1,
                "musicalCount": 1
            },
            {
                "id": 47,
                "name": "#아마존인가?",
                "likeCount": 3,
                "totalLikeCount": 3,
                "musicalCount": 3
            },
            {
                "id": 48,
                "name": "#아마존인가????",
                "likeCount": 3,
                "totalLikeCount": 3,
                "musicalCount": 3
            },
            {
                "id": 49,
                "name": "#AWS다이눔아",
                "likeCount": 11,
                "totalLikeCount": 11,
                "musicalCount": 11
            },
            {
                "id": 50,
                "name": "#AWS다이눔아!!",
                "likeCount": 2,
                "totalLikeCount": 2,
                "musicalCount": 2
            },
            {
                "id": 82,
                "name": "asdfasd",
                "likeCount": 1,
                "totalLikeCount": 1,
                "musicalCount": 1
            },
            {
                "id": 83,
                "name": "#test",
                "likeCount": 2,
                "totalLikeCount": 2,
                "musicalCount": 2
            },
            {
                "id": 84,
                "name": "test",
                "likeCount": 6,
                "totalLikeCount": 6,
                "musicalCount": 6
            },
            {
                "id": 85,
                "name": "#정글북",
                "likeCount": 1,
                "totalLikeCount": 1,
                "musicalCount": 1
            }
        ],
        "userHashtag": [
            [
                {
                    "id": 50,
                    "name": "#AWS다이눔아!!",
                    "username": "hashtagTest",
                    "profile": null
                }
            ],
            [
                {
                    "id": 83,
                    "name": "#test",
                    "username": "admin",
                    "profile": null
                }
            ],
            [
                {
                    "id": 84,
                    "name": "test",
                    "username": "성룡",
                    "profile": "http://k.kakaocdn.net/dn/dpk9l1/btqmGhA2lKL/Oz0wDuJn1YV2DIn92f6DVK/img_640x640.jpg"
                },
                {
                    "id": 84,
                    "name": "test",
                    "username": "admin",
                    "profile": null
                }
            ],
            [
                {
                    "id": 85,
                    "name": "#정글북",
                    "username": "성룡",
                    "profile": "http://k.kakaocdn.net/dn/dpk9l1/btqmGhA2lKL/Oz0wDuJn1YV2DIn92f6DVK/img_640x640.jpg"
                }
            ]
        ]
    },
    "message": "ok"
}

2. /muscial/hashtag : 상세페이지에서 해시태그 등록 요청에 대한 응답

{
    "data": {
        "updatedHashtagData": [
            {
                "id": 55,
                "name": "#AWS다이눔아!!",
                "totalLikeCount": 3,
                "musicalCount": 3
            }
        ],
        "HashtagsData": [
            {
                "name": "판타지",
                "likeCount": 1,
                "totalLikeCount": 3,
                "musicalCount": 3
            },
            {
                "name": "혼자",
                "likeCount": 1,
                "totalLikeCount": 4,
                "musicalCount": 4
            },
            {
                "name": "#타잔",
                "likeCount": 1,
                "totalLikeCount": 1,
                "musicalCount": 1
            },
            {
                "name": "#킹콩",
                "likeCount": 1,
                "totalLikeCount": 1,
                "musicalCount": 1
            },
            {
                "name": "#아마존인가?",
                "likeCount": 3,
                "totalLikeCount": 3,
                "musicalCount": 3
            },
            {
                "name": "#아마존인가????",
                "likeCount": 3,
                "totalLikeCount": 3,
                "musicalCount": 3
            },
            {
                "name": "#AWS다이눔아",
                "likeCount": 11,
                "totalLikeCount": 11,
                "musicalCount": 11
            },
            {
                "name": "#AWS다이눔아!!",
                "likeCount": 3,
                "totalLikeCount": 3,
                "musicalCount": 3
            },
            {
                "name": "asdfasd",
                "likeCount": 1,
                "totalLikeCount": 1,
                "musicalCount": 1
            },
            {
                "name": "#test",
                "likeCount": 2,
                "totalLikeCount": 2,
                "musicalCount": 2
            },
            {
                "name": "test",
                "likeCount": 6,
                "totalLikeCount": 6,
                "musicalCount": 6
            },
            {
                "name": "#정글북",
                "likeCount": 1,
                "totalLikeCount": 1,
                "musicalCount": 1
            }
        ],
        "userHashtagData": [
            {
                "username": "hashtagTest",
                "profile": null,
                "email": "08191@gmail.com",
                "title": "정글북",
                "name": "#AWS다이눔아!!"
            }
        ]
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions