mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 19:21:10 +00:00
Extends the music library listings with covers, sorting and alpha filtering.
This commit is contained in:
1 parent
0019821e87
commit
9d82f283e4
69 files changed
+3613
-268
No files matched your search
+2
@@ -373,6 +373,8 @@ public class AddAlbumEndpointSummary : Summary<AddAlbumEndpoint, AddAlbumRequest
|
||||
ResponseParam<AlbumResponse>(r => r.Metadata!.Genres, "The list of genres associated with the album.");
|
||||
ResponseParam<AlbumResponse>(r => r.Metadata!.Tags, "The list of tags that further describe or categorize the album.");
|
||||
ResponseParam<AlbumResponse>(r => r.Tracks, "The list of tracks of the album.");
|
||||
ResponseParam<AlbumResponse>(r => r.CoverPath, "The path of the image representing the album, if available.");
|
||||
ResponseParam<AlbumResponse>(r => r.Artwork, "The stored artwork of the album, in display order, if applicable.");
|
||||
|
||||
Response(201, "The newly created album is returned.",
|
||||
example: new AlbumResponse(
|
||||
|
||||
+2
@@ -177,6 +177,8 @@ public class UpdateAlbumEndpointSummary : Summary<UpdateAlbumEndpoint, UpdateAlb
|
||||
ResponseParam<AlbumResponse>(r => r.Metadata!.Genres, "The list of genres associated with the album.");
|
||||
ResponseParam<AlbumResponse>(r => r.Metadata!.Tags, "The list of tags that further describe or categorize the album.");
|
||||
ResponseParam<AlbumResponse>(r => r.Tracks, "The list of tracks of the album.");
|
||||
ResponseParam<AlbumResponse>(r => r.CoverPath, "The path of the image representing the album, if available.");
|
||||
ResponseParam<AlbumResponse>(r => r.Artwork, "The stored artwork of the album, in display order, if applicable.");
|
||||
|
||||
Response(200, "The updated album is returned.",
|
||||
example: new AlbumResponse(
|
||||
|
||||
+3
@@ -455,6 +455,8 @@ public class AddArtistEndpointSummary : Summary<AddArtistEndpoint, AddArtistRequ
|
||||
ResponseParam<ArtistResponse>(r => r.Albums![0].Contributors, "The list of references to the media contributors that performed on the album, each with the role they played.");
|
||||
ResponseParam<ArtistResponse>(r => r.Albums![0].Ratings, "The list of ratings for the album.");
|
||||
ResponseParam<ArtistResponse>(r => r.Albums![0].Tracks, "The list of tracks of the album.");
|
||||
ResponseParam<ArtistResponse>(r => r.Albums![0].CoverPath, "The path of the image representing the album, if available.");
|
||||
ResponseParam<ArtistResponse>(r => r.Albums![0].Artwork, "The stored artwork of the album, in display order, if applicable.");
|
||||
ResponseParam<ArtistResponse>(r => r.Albums![0].Tracks![0].Id, "The Id of the track.");
|
||||
ResponseParam<ArtistResponse>(r => r.Albums![0].Tracks![0].AlbumId, "The Id of the album the track belongs to.");
|
||||
ResponseParam<ArtistResponse>(r => r.Albums![0].Tracks![0].LibraryId, "The Id of the media library this track belongs to.");
|
||||
@@ -503,6 +505,7 @@ public class AddArtistEndpointSummary : Summary<AddArtistEndpoint, AddArtistRequ
|
||||
ResponseParam<ArtistResponse>(r => r.Albums![0].Tracks![0].Ratings, "The list of ratings for the track.");
|
||||
ResponseParam<ArtistResponse>(r => r.CreatedOnUtc, "The date and time when the artist was created.");
|
||||
ResponseParam<ArtistResponse>(r => r.UpdatedOnUtc, "The date and time when the artist was last updated, if applicable.");
|
||||
ResponseParam<ArtistResponse>(r => r.CoverPath, "The path of the image representing the artist, if available.");
|
||||
|
||||
Response(201, "The new artist is returned.",
|
||||
example: new ArtistResponse(
|
||||
|
||||
+1
@@ -39,6 +39,7 @@ public class GetArtistEndpointSummary : Summary<GetArtistEndpoint, EmptyRequest>
|
||||
ResponseParam<ArtistResponse>(r => r.Albums, "The list of albums of the artist, each with its own list of tracks.");
|
||||
ResponseParam<ArtistResponse>(r => r.CreatedOnUtc, "The date and time when the artist was created.");
|
||||
ResponseParam<ArtistResponse>(r => r.UpdatedOnUtc, "The date and time when the artist was last updated, if applicable.");
|
||||
ResponseParam<ArtistResponse>(r => r.CoverPath, "The path of the image representing the artist, if available.");
|
||||
|
||||
Response(200, "The requested artist is returned.",
|
||||
example: new ArtistResponse(
|
||||
|
||||
+2
@@ -65,6 +65,8 @@ public class GetArtistAlbumsEndpointSummary : Summary<GetArtistAlbumsEndpoint, E
|
||||
ResponseParam<AlbumResponse>(r => r.Metadata!.Genres, "The list of genres associated with the album.");
|
||||
ResponseParam<AlbumResponse>(r => r.Metadata!.Tags, "The list of tags that further describe or categorize the album.");
|
||||
ResponseParam<AlbumResponse>(r => r.Tracks, "The list of tracks of the album.");
|
||||
ResponseParam<AlbumResponse>(r => r.CoverPath, "The path of the image representing the album, if available.");
|
||||
ResponseParam<AlbumResponse>(r => r.Artwork, "The stored artwork of the album, in display order, if applicable.");
|
||||
|
||||
Response(200, "The list of albums of the artist is returned.",
|
||||
example: new AlbumResponse[]
|
||||
|
||||
+3
@@ -36,6 +36,9 @@ public class GetArtistAlbumsLiteEndpointSummary : Summary<GetArtistAlbumsLiteEnd
|
||||
ResponseParam<AlbumLiteResponse>(r => r.Id, "The Id of the album.");
|
||||
ResponseParam<AlbumLiteResponse>(r => r.Title, "The title of the album.");
|
||||
ResponseParam<AlbumLiteResponse>(r => r.TotalTracks, "The number of tracks of the release.");
|
||||
ResponseParam<AlbumLiteResponse>(r => r.CoverPath, "The path of the image representing the album, if available.");
|
||||
ResponseParam<AlbumLiteResponse>(r => r.ReleaseYear, "The release year of the album (the re-release year, if available, or the original release year), if known.");
|
||||
ResponseParam<AlbumLiteResponse>(r => r.ReleaseTypes, "The set of types of the release.");
|
||||
|
||||
Response(200, "The paginated list of the lightweight read models of the albums of the artist is returned.",
|
||||
example: new PaginatedResponse<AlbumLiteResponse>
|
||||
|
||||
+1
@@ -51,6 +51,7 @@ public class GetArtistsEndpointSummary : Summary<GetArtistsEndpoint, GetArtistsR
|
||||
ResponseParam<ArtistResponse>(r => r.Albums, "The list of albums of the artist, each with its own list of tracks.");
|
||||
ResponseParam<ArtistResponse>(r => r.CreatedOnUtc, "The date and time when the artist was created.");
|
||||
ResponseParam<ArtistResponse>(r => r.UpdatedOnUtc, "The date and time when the artist was last updated, if applicable.");
|
||||
ResponseParam<ArtistResponse>(r => r.CoverPath, "The path of the image representing the artist, if available.");
|
||||
|
||||
Response(200, "The paginated list of the artists of the media library is returned.",
|
||||
example: new PaginatedResponse<ArtistResponse>
|
||||
|
||||
+2
-1
@@ -39,12 +39,13 @@ public class GetArtistsLiteEndpointSummary : Summary<GetArtistsLiteEndpoint, Get
|
||||
RequestParam(r => r.PerPage, "The maximum number of artists to retrieve per page. Optional.");
|
||||
RequestParam(r => r.SearchTerm, "The search term used to filter the artists by name. Optional.");
|
||||
RequestParam(r => r.FilterAlphaKey, "The alpha key used to filter the artists by the first character of their name, for the alpha picker. Optional.");
|
||||
RequestParam(r => r.ShouldIgnoreThePrefixForAlphaPicker, "Whether the leading \"The \" prefix of a name is ignored when computing the alpha key, or not.");
|
||||
RequestParam(r => r.ShouldIgnoreThePrefixForAlphaPicker, "Whether the leading \"The \" prefix of a name is ignored when computing the alpha key, or not. Optional.");
|
||||
RequestParam(r => r.SortBy, "The name of the field by which to sort the results. Optional.");
|
||||
RequestParam(r => r.SortOrder, "The direction in which to sort the results. Optional.");
|
||||
|
||||
ResponseParam<ArtistLiteResponse>(r => r.Id, "The Id of the artist.");
|
||||
ResponseParam<ArtistLiteResponse>(r => r.Name, "The name of the artist.");
|
||||
ResponseParam<ArtistLiteResponse>(r => r.CoverPath, "The path of the image representing the artist, if available.");
|
||||
|
||||
Response(200, "The paginated list of the lightweight read models of the artists is returned.",
|
||||
example: new PaginatedResponse<ArtistLiteResponse>
|
||||
|
||||
+3
@@ -454,6 +454,8 @@ public class UpdateArtistEndpointSummary : Summary<UpdateArtistEndpoint, UpdateA
|
||||
ResponseParam<ArtistResponse>(r => r.Albums![0].Contributors, "The list of references to the media contributors that performed on the album, each with the role they played.");
|
||||
ResponseParam<ArtistResponse>(r => r.Albums![0].Ratings, "The list of ratings for the album.");
|
||||
ResponseParam<ArtistResponse>(r => r.Albums![0].Tracks, "The list of tracks of the album.");
|
||||
ResponseParam<ArtistResponse>(r => r.Albums![0].CoverPath, "The path of the image representing the album, if available.");
|
||||
ResponseParam<ArtistResponse>(r => r.Albums![0].Artwork, "The stored artwork of the album, in display order, if applicable.");
|
||||
ResponseParam<ArtistResponse>(r => r.Albums![0].Tracks![0].Id, "The Id of the track.");
|
||||
ResponseParam<ArtistResponse>(r => r.Albums![0].Tracks![0].AlbumId, "The Id of the album the track belongs to.");
|
||||
ResponseParam<ArtistResponse>(r => r.Albums![0].Tracks![0].LibraryId, "The Id of the media library this track belongs to.");
|
||||
@@ -502,6 +504,7 @@ public class UpdateArtistEndpointSummary : Summary<UpdateArtistEndpoint, UpdateA
|
||||
ResponseParam<ArtistResponse>(r => r.Albums![0].Tracks![0].Ratings, "The list of ratings for the track.");
|
||||
ResponseParam<ArtistResponse>(r => r.CreatedOnUtc, "The date and time when the artist was created.");
|
||||
ResponseParam<ArtistResponse>(r => r.UpdatedOnUtc, "The date and time when the artist was last updated, if applicable.");
|
||||
ResponseParam<ArtistResponse>(r => r.CoverPath, "The path of the image representing the artist, if available.");
|
||||
|
||||
Guid artistId = Guid.NewGuid();
|
||||
Guid libraryId = Guid.NewGuid();
|
||||
|
||||
Reference in new issue
Block a user