Skip to content

Latest commit

 

History

History
36 lines (33 loc) · 722 Bytes

File metadata and controls

36 lines (33 loc) · 722 Bytes

Retrieve details of a single artist with associated songs

Description

This ticket requests the implementation of a route that retrieves the details of a single artist, including the songs associated with them.

Request

  • Method: GET
  • Path: /artists/{artistId}
  • unnecessary

Response

  • Body
    {
      "id": {artistId},
      "name": "Artist Name",
      "age": 25,
      "bio": "Artist Bio",
      "song_count": 9,
      "songs": [
        {
          "id": 123,
          "title": "Song 1",
          "album": "Album 1",
          "length": 180
        },
        {
          "id": 456,
          "title": "Song 2",
          "album": "Album 2",
          "length": 240
        }
      ]
    }
  • Status Code: 200 OK