Vrací všechny skladby přiřazené k danému playlistu.
GET
/playlists/{playlistId}/songs
curl \
--request GET 'https://api.mstonjek.cz/v1/playlists/playlist_001/songs' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"data": [
{
"id": "song_123",
"title": "Losing It",
"duration": 245
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 1
}
}
Response examples (401)
{
"code": "UNAUTHORIZED",
"message": "Token není platný"
}
Response examples (403)
{
"code": "FORBIDDEN",
"message": "Nemáte oprávnění"
}
Response examples (404)
{
"code": "NOT_FOUND",
"message": "Zdroj uživatel 'user_123' nebyl nalezen."
}
Response examples (500)
{
"code": "INTERNAL_SERVER_ERROR",
"message": "Server momentálně nedostupný"
}