Get Detail Playlist

Get Detail Playlist

To get the data in the specified collection. If no parameters are passed, it lists all of them. Otherwise, it lists the documents in the collection matching the specified parameters:

Method : GET

URL : /api/playlist/detail?id=(id)

Response : 200 - OK

{
  "playlist": [
    {
      "id": 1,
      "user_id": null,
      "name": "Noah Top 10 ",
      "created_at": "2023-01-04T05:56:57.40715+00:00"
    }
  ],
  "playlist_song": [
    {
      "id": 19,
      "playlist_id": 1,
      "song_id": 2,
      "created_at": "2023-01-04T08:57:27.606081+00:00",
      "songs": {
        "id": 2,
        "name": "Bintang Di Surga",
        "youtube_url": "B1ynHmn0XZ4",
        "cover_url": "https://i.scdn.co/image/ab67616d00001e02af69d9e82cc973f608481610",
        "artist_id": 1,
        "created_at": "2022-07-06T10:38:10+00:00",
        "album_id": 1,
        "preview_url": "https://p.scdn.co/mp3-preview/09474fc657c15038cb699afa4a52b4fac9383d62"
      }
    },
    {
      "id": 20,
      "playlist_id": 1,
      "song_id": 18,
      "created_at": "2023-01-04T08:57:34.454451+00:00",
      "songs": {
        "id": 18,
        "name": "Mimpi Yang Sempurna",
        "youtube_url": "_OW30kEHcZo",
        "cover_url": "https://i.scdn.co/image/ab67616d0000b27324496b7707e9304c4ad76c5a",
        "artist_id": 1,
        "created_at": "2023-01-04T06:02:03.795879+00:00",
        "album_id": 3,
        "preview_url": "https://p.scdn.co/mp3-preview/8ea3c3ed5d06e32b1abbd97d0770a88441acde32"
      }
    }
    }
  ]
}

Response : 404 - Not Found

Not Found

Response : 500 - Server Error

Internal Server Error