Get Detail Album

Get Detail Album

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/album/detail?id=1

Response : 200 - OK

[
	{
		"id": 1,
		"created_at": "2022-12-22T13:41:57.364685+00:00",
		"name": "Bintang di Surga",
		"cover": "https://i.scdn.co/image/ab67616d00001e02af69d9e82cc973f608481610",
		"updated_at": "2022-12-22T13:41:57.364685",
		"artists_id": 1,
		"artists": {
			"id": 1,
			"created_at": "2022-07-06T10:43:42+00:00",
			"name": "Noah",
			"cover_url": "https://i.scdn.co/image/ab6761610000e5eba8fe25ec607f3cca02f5db6c",
			"genre_id": 1
		},
		"songs": [
			{
				"id": 21,
				"name": "Ada Apa Denganmu",
				"youtube_url": "sEM01iNOSQA",
				"cover_url": "https://i.scdn.co/image/ab67616d00001e02af69d9e82cc973f608481610",
				"artist_id": 1,
				"created_at": "2023-01-04T06:04:09.397488+00:00",
				"album_id": 1,
				"preview_url": "https://p.scdn.co/mp3-preview/c6e19c3e7e0af8cf26f54b41468b1b0121166f11"
			},
			{
				"id": 22,
				"name": "Mungkin Nanti",
				"youtube_url": "SWcMwUySDvI",
				"cover_url": "https://i.scdn.co/image/ab67616d00001e02af69d9e82cc973f608481610",
				"artist_id": 1,
				"created_at": "2023-01-04T06:04:32.446516+00:00",
				"album_id": 1,
				"preview_url": "https://p.scdn.co/mp3-preview/874ad06ded337fa74144ee3e18efe00b203de178"
			}
		]
	}
]

Response : 404 - Not Found

Not Found

Response : 500 - Server Error

Internal Server Error