feat(api): expose the album endpoints

Eight routes under /albums covering the listing, the detail, the tracklist and
the owner-only writes, wired to the same validation filter and ErrorOr mapping
the playlists use.
This commit is contained in:
2026-07-20 20:13:40 +02:00
parent 69468c9dbd
commit 22ed923a04
7 changed files with 260 additions and 0 deletions
@@ -0,0 +1,6 @@
namespace Musify.Api.DataTransferObjects.Albums;
public record CreateAlbumRequest(
string Title,
string? Description,
int? ReleaseYear);
@@ -0,0 +1,6 @@
namespace Musify.Api.DataTransferObjects.Albums;
public record UpdateAlbumRequest(
string NewTitle,
string? NewDescription,
int? NewReleaseYear);