GET /artists/{artistId}/songs

Query parameters

  • page integer

    Minimum value is 1. Default value is 1.

  • limit integer

    Minimum value is 1, maximum value is 100. Default value is 20.

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • data array
  • 404 application/json

    Zdroj nenalezen

    Hide response attributes Show response attributes object
    • code string
    • message string
  • 500 application/json

    Chyba serveru

    Hide response attributes Show response attributes object
    • code string
    • message string
GET /artists/{artistId}/songs
curl \
 --request GET 'https://api.mstonjek.cz/v1/artists/{artistId}/songs' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "data": [
    {
      "id": "1b2b3c4d-5e6f-7081-92ab-3c4d5e6f7081",
      "album": "Discovery",
      "genre": "Electronic",
      "title": "Harder, Better, Faster, Stronger",
      "duration": 224,
      "artistIds": [
        "8d3f7e7a-6a6b-4b99-9b52-6f9d7d2a0a11"
      ],
      "releaseYear": 2001
    },
    {
      "id": "2ab3cd45-6ef7-8901-2a3b-4c5d6e7f8901",
      "album": "Starboy",
      "genre": "R&B",
      "title": "Starboy",
      "duration": 230,
      "artistIds": [
        "4f0b3c67-9a42-4c51-a2b0-08e6e2e1c001"
      ],
      "releaseYear": 2016
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 20,
    "total": 42
  }
}
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ý"
}