Get All Artist

Get All 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

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
      }
    ]
  },
  {
    "id": 3,
    "created_at": "2022-07-06T14:43:34+00:00",
    "name": "Coldplay",
    "cover_url": "https://i.scdn.co/image/ab67616d00001e02b151437d4adc97ce6c828d4a",
    "genre_id": 3,
    "genre": {
      "id": 3,
      "name": "Alternative",
      "created_at": "2022-12-22T13:37:39.65193+00:00"
    },
    "songs": [
      {
        "id": 11,
        "name": "A Head Full Of Dreams",
        "youtube_url": "vGZMvV9KBp8",
        "cover_url": "https://i.scdn.co/image/ab67616d0000b2738ff7c3580d429c8212b9a3b6",
        "artist_id": 3,
        "created_at": "2022-07-06T14:48:43+00:00",
        "album_id": 9,
        "preview_url": "https://p.scdn.co/mp3-preview/a5de5c8bb9e27204d232b6e62b23a82d4cc5a7d9"
      }
    ],
    "album": [
      {
        "id": 9,
        "created_at": "2022-12-22T15:35:31.495+00:00",
        "name": "A Head Full of Dreams",
        "cover": "https://i.scdn.co/image/ab67616d00001e028ff7c3580d429c8212b9a3b6",
        "updated_at": "2022-12-22T15:35:31.495",
        "artists_id": 3
      }
    ]
  }
]

Response : 404 - Not Found

Not Found

Response : 500 - Server Error

Internal Server Error