Get Detail Artist

Get Detail Artist

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/artist?id=(id)

Response : 200 - OK

[
  {
    "id": 1,
    "created_at": "2022-07-06T10:43:42+00:00",
    "name": "Noah",
    "cover_url": "https://i.scdn.co/image/ab6761610000e5eba8fe25ec607f3cca02f5db6c",
    "genre_id": 1,
    "genre": {
      "id": 1,
      "name": "Pop",
      "created_at": "2022-12-22T13:37:09.832956+00:00"
    },
    "songs": [
      {
        "id": 27,
        "name": "Menghapus Jejakmu",
        "youtube_url": "nGMP3kYq2bE",
        "cover_url": "https://i.scdn.co/image/ab67616d00001e02076747ead143aa3cd8c1d2f0",
        "artist_id": 1,
        "created_at": "2023-01-04T06:07:37.915086+00:00",
        "album_id": 2,
        "preview_url": "https://p.scdn.co/mp3-preview/e4802e7f358039bb15eaced6211fb4bb9c44c8c1"
      }
    ],
    "album": [
      {
        "id": 2,
        "created_at": "2022-12-22T14:57:18.54569+00:00",
        "name": "Hari yang Cerah",
        "cover": "https://i.scdn.co/image/ab67616d00001e02076747ead143aa3cd8c1d2f0",
        "updated_at": "2022-12-22T14:57:18.54569",
        "artists_id": 1
      }
    ]
  }
]

Response : 404 - Not Found

Not Found

Response : 500 - Server Error

Internal Server Error