Skip to content

적중곡리스트조회

SimJungUk edited this page Jul 12, 2019 · 2 revisions

적중곡 리스트 조회

메소드 경로 짧은 설명
GET /pl/hits?status={status} 적중곡 리스트 조회

요청 헤더

Content-Type: application/json
Authorization: Json Web Token
  • queryString 없을 경우 : 평가 적중 결과 리스트 조회
  • status=success : 적중 성공곡 리스트 조회

응답 바디

평가 적중 결과 리스트 (queryString 없을 경우)

{
    "status": 200,
    "success": true,
    "data": {
        "songList": [
            {
                "genre": [
                    "g6"
                ],
                "mood": [
                    "m6"
                ],
                "_id": "5d25baa414f0f71c24b85133",
                "originTitle": "롤러코스터",
                "userIdx": 103,
                "coverArtistName": "석영현",
                "streamCount": 0,
                "likeCount": 0,
                "artwork": "https://project-wave-1.s3.ap-northeast-2.amazonaws.com/99A3094C5A654BDA36.jpg",
                "originArtistIdx": 8,
                "originArtistName": "알라딘",
                "enrollTime": "2019-07-10T02:39:03.054Z",
                "songUrl": "https://project-wave-1.s3.ap-northeast-2.amazonaws.com/Roller+Coaster_%EC%B2%AD%ED%95%98_320k.mp3",
                "songComment": "이것은코멘트이다코멘트는코멘트야",
                "reportCount": 0,
                "rateScore": 100,
                "highlightTime": "1:34",
                "songStatus": 1,
                "uploadDate": "2019-07-10T01:14:24.000Z",
                "deleteTime": "2019-07-17T01:14:24.000Z",
                "rateUserCount": 20
            }
        ],
        "_id": "5d253f23f061683d225ff86d",
        "playlistName": "hits",
        "playlistComment": "적중곡",
        "userIdx": 105
    }
}

적중 성공곡 리스트 (status=success)

{
    "status": 200,
    "success": true,
    "data": {
        "songList": [
            {
                "genre": [
                    "g6"
                ],
                "mood": [
                    "m6"
                ],
                "_id": "5d25baa414f0f71c24b85133",
                "originTitle": "롤러코스터",
                "userIdx": 103,
                "coverArtistName": "석영현",
                "streamCount": 0,
                "likeCount": 0,
                "artwork": "https://project-wave-1.s3.ap-northeast-2.amazonaws.com/99A3094C5A654BDA36.jpg",
                "originArtistIdx": 8,
                "originArtistName": "알라딘",
                "enrollTime": "2019-07-10T02:39:03.054Z",
                "songUrl": "https://project-wave-1.s3.ap-northeast-2.amazonaws.com/Roller+Coaster_%EC%B2%AD%ED%95%98_320k.mp3",
                "songComment": "이것은코멘트이다코멘트는코멘트야",
                "reportCount": 0,
                "rateScore": 100,
                "highlightTime": "1:34",
                "songStatus": 1,
                "uploadDate": "2019-07-10T01:14:24.000Z",
                "deleteTime": "2019-07-17T01:14:24.000Z",
                "rateUserCount": 20
            }
        ],
        "_id": "5d253f23f061683d225ff86d",
        "playlistName": "hits",
        "playlistComment": "적중곡",
        "userIdx": 105
    }
}

비회원일 경우

{
    "status": 404,
    "success": false,
    "message": "토큰과 일치하는 유저가 없습니다."
}

INTERNAL SERVER ERROR

{
    "status": 500,
    "success": false,
    "message": "INTERNAL SERVER ERROR",
}

Clone this wiki locally