codestates / codestates/Loca-Musica

hashtag 관련 API 예시 공유

Open
#121 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
0
Forks
3
PR merge metrics
No merged PRs in 30d

Description

## 1. ```/muscial/정글북``` : 상세페이지 요청에 대한 응답
```js
{
"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``` : 상세페이지에서 해시태그 등록 요청에 대한 응답

```js
{
"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다이눔아!!"
}
]
}
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Review the two example responses for /muscial/정글북 and /muscial/hashtag against the repository's existing API documentation. The issue does not name a file or specify the requested change, so first clarify whether these examples should be documented or corrected. Done means the intended API response examples are placed in the appropriate documentation location and are consistent.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.