Get All Playlist User

Get All Playlist of User

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/my-playlist?id=(id_user)

Response : 200 - OK

[
  {
    "id": 1,
    "user_id": 2,
    "name": "User Top 3",
    "created_at": "2023-01-16T10:25:35.385349+00:00",
    "playlist_user_song": [
      {
        "id": 1,
        "playlist_user_id": 1,
        "song_id": 1,
        "created_at": "2023-01-16T11:30:01.300882+00:00"
      },
      {
        "id": 2,
        "playlist_user_id": 1,
        "song_id": 2,
        "created_at": "2023-01-16T11:30:08.253137+00:00"
      }
    ]
  },
  {
    "id": 2,
    "user_id": 2,
    "name": "User Top 5",
    "created_at": "2023-01-16T10:26:55.161524+00:00",
    "playlist_user_song": [
      {
        "id": 4,
        "playlist_user_id": 2,
        "song_id": 4,
        "created_at": "2023-01-16T11:30:24.290559+00:00"
      },
      {
        "id": 5,
        "playlist_user_id": 2,
        "song_id": 5,
        "created_at": "2023-01-16T11:30:31.817457+00:00"
      }
    ]
  }
]

Response : 404 - Not Found

Not Found

Response : 500 - Server Error

Internal Server Error