mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 10:11:10 +00:00
Adds example values to the API endpoint documentation summaries.
This commit is contained in:
1 parent
defbd9176f
commit
9a7a1dffb2
14 files changed
+642
-29
No files matched your search
+4
-2
@@ -11,6 +11,7 @@ using Lumina.Contracts.Responses.MediaLibrary.AudioLibrary.MusicLibrary.Tracks;
|
|||||||
using Lumina.Domain.SharedKernel.Common.Enums.AudioLibrary;
|
using Lumina.Domain.SharedKernel.Common.Enums.AudioLibrary;
|
||||||
using Lumina.Domain.SharedKernel.Common.Enums.Common;
|
using Lumina.Domain.SharedKernel.Common.Enums.Common;
|
||||||
using Lumina.Domain.SharedKernel.Common.Enums.MediaContributors;
|
using Lumina.Domain.SharedKernel.Common.Enums.MediaContributors;
|
||||||
|
using Lumina.Domain.SharedKernel.Common.Enums.MediaLibrary;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
@@ -636,8 +637,9 @@ public class AddAlbumEndpointSummary : Summary<AddAlbumEndpoint, AddAlbumRequest
|
|||||||
CreatedOnUtc: new DateTime(2025, 1, 15, 10, 30, 0, DateTimeKind.Utc),
|
CreatedOnUtc: new DateTime(2025, 1, 15, 10, 30, 0, DateTimeKind.Utc),
|
||||||
UpdatedOnUtc: new DateTime(2025, 1, 20, 14, 45, 0, DateTimeKind.Utc)
|
UpdatedOnUtc: new DateTime(2025, 1, 20, 14, 45, 0, DateTimeKind.Utc)
|
||||||
)
|
)
|
||||||
]
|
],
|
||||||
)
|
CoverPath: "/media/music/Queen-3b3a19f3/A Night at the Opera-e8d52f7b/cover.jpg",
|
||||||
|
Artwork: [new MediaArtworkDto(ArtworkType.Cover, 0, "/media/music/Queen-3b3a19f3/A Night at the Opera-e8d52f7b/cover.jpg")])
|
||||||
);
|
);
|
||||||
|
|
||||||
Response(401, "Authentication required.", "application/problem+json",
|
Response(401, "Authentication required.", "application/problem+json",
|
||||||
|
|||||||
+197
-2
@@ -8,6 +8,7 @@ using Lumina.Contracts.Responses.MediaLibrary.AudioLibrary.MusicLibrary.Albums;
|
|||||||
using Lumina.Domain.SharedKernel.Common.Enums.AudioLibrary;
|
using Lumina.Domain.SharedKernel.Common.Enums.AudioLibrary;
|
||||||
using Lumina.Domain.SharedKernel.Common.Enums.Common;
|
using Lumina.Domain.SharedKernel.Common.Enums.Common;
|
||||||
using Lumina.Domain.SharedKernel.Common.Enums.MediaContributors;
|
using Lumina.Domain.SharedKernel.Common.Enums.MediaContributors;
|
||||||
|
using Lumina.Domain.SharedKernel.Common.Enums.MediaLibrary;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
@@ -64,6 +65,8 @@ public class GetAlbumEndpointSummary : Summary<GetAlbumEndpoint, EmptyRequest>
|
|||||||
ResponseParam<AlbumResponse>(r => r.Metadata!.Genres, "The list of genres associated with the album.");
|
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.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.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 requested album is returned.",
|
Response(200, "The requested album is returned.",
|
||||||
example: new AlbumResponse(
|
example: new AlbumResponse(
|
||||||
@@ -142,8 +145,200 @@ public class GetAlbumEndpointSummary : Summary<GetAlbumEndpoint, EmptyRequest>
|
|||||||
],
|
],
|
||||||
CreatedOnUtc: new DateTime(2025, 1, 15, 10, 30, 0, DateTimeKind.Utc),
|
CreatedOnUtc: new DateTime(2025, 1, 15, 10, 30, 0, DateTimeKind.Utc),
|
||||||
UpdatedOnUtc: new DateTime(2025, 1, 20, 14, 45, 0, DateTimeKind.Utc),
|
UpdatedOnUtc: new DateTime(2025, 1, 20, 14, 45, 0, DateTimeKind.Utc),
|
||||||
Tracks: []
|
Tracks:
|
||||||
)
|
[
|
||||||
|
new(
|
||||||
|
Id: Guid.NewGuid(),
|
||||||
|
AlbumId: Guid.NewGuid(),
|
||||||
|
LibraryId: Guid.NewGuid(),
|
||||||
|
Path: "/music/queen/a-night-at-the-opera/01-bohemian-rhapsody.flac",
|
||||||
|
Metadata: new(
|
||||||
|
Title: "Bohemian Rhapsody",
|
||||||
|
OriginalTitle: "Bohemian Rhapsody",
|
||||||
|
Description: "A song by the British rock band Queen. It was written by Freddie Mercury and originally released on the album A Night at the Opera in 1975.",
|
||||||
|
Disambiguation: "album version",
|
||||||
|
ReleaseInfo: new(
|
||||||
|
OriginalReleaseDate: new DateOnly(1975, 10, 31),
|
||||||
|
OriginalReleaseYear: 1975,
|
||||||
|
ReReleaseDate: new DateOnly(2011, 11, 21),
|
||||||
|
ReReleaseYear: 2011,
|
||||||
|
ReleaseCountry: ReleaseCountry.GB,
|
||||||
|
ReleaseVersion: "Original"
|
||||||
|
),
|
||||||
|
Language: new(
|
||||||
|
LanguageCode: "en",
|
||||||
|
LanguageName: "English",
|
||||||
|
NativeName: "English"
|
||||||
|
),
|
||||||
|
OriginalLanguage: new(
|
||||||
|
LanguageCode: "en",
|
||||||
|
LanguageName: "English",
|
||||||
|
NativeName: "English"
|
||||||
|
),
|
||||||
|
Tags: [
|
||||||
|
new(Name: "classic"),
|
||||||
|
new(Name: "epic")
|
||||||
|
],
|
||||||
|
Genres: [
|
||||||
|
new(Name: "Rock"),
|
||||||
|
new(Name: "Progressive Rock")
|
||||||
|
],
|
||||||
|
DurationInSeconds: 354,
|
||||||
|
SampleRate: 44100,
|
||||||
|
Channels: 2,
|
||||||
|
BitDepth: 16,
|
||||||
|
AudioCodec: "FLAC",
|
||||||
|
Bitrate: 980,
|
||||||
|
IsVideo: false
|
||||||
|
),
|
||||||
|
Script: "Latn",
|
||||||
|
Key: MusicKey.CMajor,
|
||||||
|
Bpm: 72,
|
||||||
|
Work: new MusicWorkDto(
|
||||||
|
MusicBrainzWorkId: Guid.NewGuid(),
|
||||||
|
Title: "Bohemian Rhapsody",
|
||||||
|
Type: "Song",
|
||||||
|
Languages: [new LanguageInfoDto(LanguageCode: "en", LanguageName: "English", NativeName: "English")],
|
||||||
|
Iswcs: ["T-010489707-6"]
|
||||||
|
),
|
||||||
|
Isrcs: [
|
||||||
|
new(Value: "GBUM71029604")
|
||||||
|
],
|
||||||
|
Moods: [
|
||||||
|
new(Name: "dramatic"),
|
||||||
|
new(Name: "anxious")
|
||||||
|
],
|
||||||
|
MusicBrainzRecordingId: Guid.NewGuid(),
|
||||||
|
MusicBrainzTrackId: Guid.NewGuid(),
|
||||||
|
Contributors: [
|
||||||
|
new MediaContributorReferenceDto(
|
||||||
|
ContributorId: Guid.NewGuid(),
|
||||||
|
Role: MediaContributorRole.Vocals
|
||||||
|
),
|
||||||
|
new MediaContributorReferenceDto(
|
||||||
|
ContributorId: Guid.NewGuid(),
|
||||||
|
Role: MediaContributorRole.Guitar
|
||||||
|
)
|
||||||
|
],
|
||||||
|
Ratings: [
|
||||||
|
new(
|
||||||
|
Value: 4.5M,
|
||||||
|
MaxValue: 5,
|
||||||
|
Source: AudioRatingSource.MusicBrainz,
|
||||||
|
VoteCount: 2345
|
||||||
|
),
|
||||||
|
new(
|
||||||
|
Value: 4.8M,
|
||||||
|
MaxValue: 5,
|
||||||
|
Source: AudioRatingSource.LastFm,
|
||||||
|
VoteCount: 1234
|
||||||
|
)
|
||||||
|
],
|
||||||
|
TrackNumber: 1,
|
||||||
|
DiscNumber: 1,
|
||||||
|
CreatedOnUtc: new DateTime(2025, 1, 15, 10, 30, 0, DateTimeKind.Utc),
|
||||||
|
UpdatedOnUtc: new DateTime(2025, 1, 20, 14, 45, 0, DateTimeKind.Utc)
|
||||||
|
),
|
||||||
|
new(
|
||||||
|
Id: Guid.NewGuid(),
|
||||||
|
AlbumId: Guid.NewGuid(),
|
||||||
|
LibraryId: Guid.NewGuid(),
|
||||||
|
Path: "/music/queen/a-night-at-the-opera/07-youre-my-best-friend.flac",
|
||||||
|
Metadata: new(
|
||||||
|
Title: "You're My Best Friend",
|
||||||
|
OriginalTitle: "You're My Best Friend",
|
||||||
|
Description: "A song by the British rock band Queen, written by bass guitarist John Deacon. It was originally released on the album A Night at the Opera in 1975 and as a single in 1976.",
|
||||||
|
Disambiguation: "album version",
|
||||||
|
ReleaseInfo: new(
|
||||||
|
OriginalReleaseDate: new DateOnly(1976, 6, 18),
|
||||||
|
OriginalReleaseYear: 1976,
|
||||||
|
ReReleaseDate: new DateOnly(2011, 11, 21),
|
||||||
|
ReReleaseYear: 2011,
|
||||||
|
ReleaseCountry: ReleaseCountry.GB,
|
||||||
|
ReleaseVersion: "Original"
|
||||||
|
),
|
||||||
|
Language: new(
|
||||||
|
LanguageCode: "en",
|
||||||
|
LanguageName: "English",
|
||||||
|
NativeName: "English"
|
||||||
|
),
|
||||||
|
OriginalLanguage: new(
|
||||||
|
LanguageCode: "en",
|
||||||
|
LanguageName: "English",
|
||||||
|
NativeName: "English"
|
||||||
|
),
|
||||||
|
Tags: [
|
||||||
|
new(Name: "classic"),
|
||||||
|
new(Name: "love")
|
||||||
|
],
|
||||||
|
Genres: [
|
||||||
|
new(Name: "Rock"),
|
||||||
|
new(Name: "Pop Rock")
|
||||||
|
],
|
||||||
|
DurationInSeconds: 181,
|
||||||
|
SampleRate: 44100,
|
||||||
|
Channels: 2,
|
||||||
|
BitDepth: 16,
|
||||||
|
AudioCodec: "FLAC",
|
||||||
|
Bitrate: 912,
|
||||||
|
IsVideo: false
|
||||||
|
),
|
||||||
|
Script: "Latn",
|
||||||
|
Key: MusicKey.BMajor,
|
||||||
|
Bpm: 118,
|
||||||
|
Work: new MusicWorkDto(
|
||||||
|
MusicBrainzWorkId: Guid.NewGuid(),
|
||||||
|
Title: "You're My Best Friend",
|
||||||
|
Type: "Song",
|
||||||
|
Languages: [new LanguageInfoDto(LanguageCode: "en", LanguageName: "English", NativeName: "English")],
|
||||||
|
Iswcs: ["T-010489707-6"]
|
||||||
|
),
|
||||||
|
Isrcs: [
|
||||||
|
new(Value: "GBUM71029609")
|
||||||
|
],
|
||||||
|
Moods: [
|
||||||
|
new(Name: "happy"),
|
||||||
|
new(Name: "warm")
|
||||||
|
],
|
||||||
|
MusicBrainzRecordingId: Guid.NewGuid(),
|
||||||
|
MusicBrainzTrackId: Guid.NewGuid(),
|
||||||
|
Contributors: [
|
||||||
|
new MediaContributorReferenceDto(
|
||||||
|
ContributorId: Guid.NewGuid(),
|
||||||
|
Role: MediaContributorRole.Vocals
|
||||||
|
),
|
||||||
|
new MediaContributorReferenceDto(
|
||||||
|
ContributorId: Guid.NewGuid(),
|
||||||
|
Role: MediaContributorRole.Guitar
|
||||||
|
)
|
||||||
|
],
|
||||||
|
Ratings: [
|
||||||
|
new(
|
||||||
|
Value: 4.2M,
|
||||||
|
MaxValue: 5,
|
||||||
|
Source: AudioRatingSource.MusicBrainz,
|
||||||
|
VoteCount: 1234
|
||||||
|
),
|
||||||
|
new(
|
||||||
|
Value: 4.4M,
|
||||||
|
MaxValue: 5,
|
||||||
|
Source: AudioRatingSource.LastFm,
|
||||||
|
VoteCount: 567
|
||||||
|
)
|
||||||
|
],
|
||||||
|
TrackNumber: 7,
|
||||||
|
DiscNumber: 1,
|
||||||
|
CreatedOnUtc: new DateTime(2025, 1, 15, 10, 30, 0, DateTimeKind.Utc),
|
||||||
|
UpdatedOnUtc: new DateTime(2025, 1, 20, 14, 45, 0, DateTimeKind.Utc)
|
||||||
|
)
|
||||||
|
],
|
||||||
|
CoverPath: "/media/music/Queen-3b3a19f3/A Night at the Opera-e8d52f7b/cover.jpg",
|
||||||
|
Artwork:
|
||||||
|
[
|
||||||
|
new MediaArtworkDto(ArtworkType.Cover, 0, "/media/music/Queen-3b3a19f3/A Night at the Opera-e8d52f7b/cover.jpg"),
|
||||||
|
new MediaArtworkDto(ArtworkType.Back, 0, "/media/music/Queen-3b3a19f3/A Night at the Opera-e8d52f7b/back.jpg"),
|
||||||
|
new MediaArtworkDto(ArtworkType.Booklet, 0, "/media/music/Queen-3b3a19f3/A Night at the Opera-e8d52f7b/booklet.jpg")
|
||||||
|
])
|
||||||
);
|
);
|
||||||
|
|
||||||
Response(401, "Authentication required.", "application/problem+json",
|
Response(401, "Authentication required.", "application/problem+json",
|
||||||
|
|||||||
+5
-2
@@ -36,6 +36,7 @@ public class GetAlbumTracksLiteEndpointSummary : Summary<GetAlbumTracksLiteEndpo
|
|||||||
ResponseParam<TrackLiteResponse>(r => r.Title, "The title of the track.");
|
ResponseParam<TrackLiteResponse>(r => r.Title, "The title of the track.");
|
||||||
ResponseParam<TrackLiteResponse>(r => r.TrackNumber, "The number of the track on its disc.");
|
ResponseParam<TrackLiteResponse>(r => r.TrackNumber, "The number of the track on its disc.");
|
||||||
ResponseParam<TrackLiteResponse>(r => r.DiscNumber, "The number of the disc the track belongs to, if applicable.");
|
ResponseParam<TrackLiteResponse>(r => r.DiscNumber, "The number of the disc the track belongs to, if applicable.");
|
||||||
|
ResponseParam<TrackLiteResponse>(r => r.DurationInSeconds, "The duration of the track in seconds.");
|
||||||
|
|
||||||
Response(200, "The paginated list of the lightweight read models of the tracks of the album is returned.",
|
Response(200, "The paginated list of the lightweight read models of the tracks of the album is returned.",
|
||||||
example: new PaginatedResponse<TrackLiteResponse>
|
example: new PaginatedResponse<TrackLiteResponse>
|
||||||
@@ -46,13 +47,15 @@ public class GetAlbumTracksLiteEndpointSummary : Summary<GetAlbumTracksLiteEndpo
|
|||||||
Id: Guid.NewGuid(),
|
Id: Guid.NewGuid(),
|
||||||
Title: "Bohemian Rhapsody",
|
Title: "Bohemian Rhapsody",
|
||||||
TrackNumber: 1,
|
TrackNumber: 1,
|
||||||
DiscNumber: 1
|
DiscNumber: 1,
|
||||||
|
DurationInSeconds: 354
|
||||||
),
|
),
|
||||||
new TrackLiteResponse(
|
new TrackLiteResponse(
|
||||||
Id: Guid.NewGuid(),
|
Id: Guid.NewGuid(),
|
||||||
Title: "You're My Best Friend",
|
Title: "You're My Best Friend",
|
||||||
TrackNumber: 2,
|
TrackNumber: 2,
|
||||||
DiscNumber: 1
|
DiscNumber: 1,
|
||||||
|
DurationInSeconds: 174
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
CurrentPage = 1,
|
CurrentPage = 1,
|
||||||
|
|||||||
+190
-2
@@ -9,6 +9,7 @@ using Lumina.Contracts.Responses.MediaLibrary.AudioLibrary.MusicLibrary.Albums;
|
|||||||
using Lumina.Domain.SharedKernel.Common.Enums.AudioLibrary;
|
using Lumina.Domain.SharedKernel.Common.Enums.AudioLibrary;
|
||||||
using Lumina.Domain.SharedKernel.Common.Enums.Common;
|
using Lumina.Domain.SharedKernel.Common.Enums.Common;
|
||||||
using Lumina.Domain.SharedKernel.Common.Enums.MediaContributors;
|
using Lumina.Domain.SharedKernel.Common.Enums.MediaContributors;
|
||||||
|
using Lumina.Domain.SharedKernel.Common.Enums.MediaLibrary;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
@@ -254,8 +255,195 @@ public class UpdateAlbumEndpointSummary : Summary<UpdateAlbumEndpoint, UpdateAlb
|
|||||||
],
|
],
|
||||||
CreatedOnUtc: new DateTime(2025, 1, 15, 10, 30, 0, DateTimeKind.Utc),
|
CreatedOnUtc: new DateTime(2025, 1, 15, 10, 30, 0, DateTimeKind.Utc),
|
||||||
UpdatedOnUtc: new DateTime(2025, 1, 20, 14, 45, 0, DateTimeKind.Utc),
|
UpdatedOnUtc: new DateTime(2025, 1, 20, 14, 45, 0, DateTimeKind.Utc),
|
||||||
Tracks: []
|
Tracks:
|
||||||
)
|
[
|
||||||
|
new(
|
||||||
|
Id: Guid.NewGuid(),
|
||||||
|
AlbumId: Guid.NewGuid(),
|
||||||
|
LibraryId: Guid.NewGuid(),
|
||||||
|
Path: "/music/queen/a-night-at-the-opera/01-bohemian-rhapsody.flac",
|
||||||
|
Metadata: new(
|
||||||
|
Title: "Bohemian Rhapsody",
|
||||||
|
OriginalTitle: "Bohemian Rhapsody",
|
||||||
|
Description: "A song by the British rock band Queen. It was written by Freddie Mercury and originally released on the album A Night at the Opera in 1975.",
|
||||||
|
Disambiguation: "album version",
|
||||||
|
ReleaseInfo: new(
|
||||||
|
OriginalReleaseDate: new DateOnly(1975, 10, 31),
|
||||||
|
OriginalReleaseYear: 1975,
|
||||||
|
ReReleaseDate: new DateOnly(2011, 11, 21),
|
||||||
|
ReReleaseYear: 2011,
|
||||||
|
ReleaseCountry: ReleaseCountry.GB,
|
||||||
|
ReleaseVersion: "Original"
|
||||||
|
),
|
||||||
|
Language: new(
|
||||||
|
LanguageCode: "en",
|
||||||
|
LanguageName: "English",
|
||||||
|
NativeName: "English"
|
||||||
|
),
|
||||||
|
OriginalLanguage: new(
|
||||||
|
LanguageCode: "en",
|
||||||
|
LanguageName: "English",
|
||||||
|
NativeName: "English"
|
||||||
|
),
|
||||||
|
Tags: [
|
||||||
|
new(Name: "classic"),
|
||||||
|
new(Name: "epic")
|
||||||
|
],
|
||||||
|
Genres: [
|
||||||
|
new(Name: "Rock"),
|
||||||
|
new(Name: "Progressive Rock")
|
||||||
|
],
|
||||||
|
DurationInSeconds: 354,
|
||||||
|
SampleRate: 44100,
|
||||||
|
Channels: 2,
|
||||||
|
BitDepth: 16,
|
||||||
|
AudioCodec: "FLAC",
|
||||||
|
Bitrate: 980,
|
||||||
|
IsVideo: false
|
||||||
|
),
|
||||||
|
Script: "Latn",
|
||||||
|
Key: MusicKey.CMajor,
|
||||||
|
Bpm: 72,
|
||||||
|
Work: new MusicWorkDto(
|
||||||
|
MusicBrainzWorkId: Guid.NewGuid(),
|
||||||
|
Title: "Bohemian Rhapsody",
|
||||||
|
Type: "Song",
|
||||||
|
Languages: [new LanguageInfoDto(LanguageCode: "en", LanguageName: "English", NativeName: "English")],
|
||||||
|
Iswcs: ["T-010489707-6"]
|
||||||
|
),
|
||||||
|
Isrcs: [
|
||||||
|
new(Value: "GBUM71029604")
|
||||||
|
],
|
||||||
|
Moods: [
|
||||||
|
new(Name: "dramatic"),
|
||||||
|
new(Name: "anxious")
|
||||||
|
],
|
||||||
|
MusicBrainzRecordingId: Guid.NewGuid(),
|
||||||
|
MusicBrainzTrackId: Guid.NewGuid(),
|
||||||
|
Contributors: [
|
||||||
|
new MediaContributorReferenceDto(
|
||||||
|
ContributorId: Guid.NewGuid(),
|
||||||
|
Role: MediaContributorRole.Vocals
|
||||||
|
),
|
||||||
|
new MediaContributorReferenceDto(
|
||||||
|
ContributorId: Guid.NewGuid(),
|
||||||
|
Role: MediaContributorRole.Guitar
|
||||||
|
)
|
||||||
|
],
|
||||||
|
Ratings: [
|
||||||
|
new(
|
||||||
|
Value: 4.5M,
|
||||||
|
MaxValue: 5,
|
||||||
|
Source: AudioRatingSource.MusicBrainz,
|
||||||
|
VoteCount: 2345
|
||||||
|
),
|
||||||
|
new(
|
||||||
|
Value: 4.8M,
|
||||||
|
MaxValue: 5,
|
||||||
|
Source: AudioRatingSource.LastFm,
|
||||||
|
VoteCount: 1234
|
||||||
|
)
|
||||||
|
],
|
||||||
|
TrackNumber: 1,
|
||||||
|
DiscNumber: 1,
|
||||||
|
CreatedOnUtc: new DateTime(2025, 1, 15, 10, 30, 0, DateTimeKind.Utc),
|
||||||
|
UpdatedOnUtc: new DateTime(2025, 1, 20, 14, 45, 0, DateTimeKind.Utc)
|
||||||
|
),
|
||||||
|
new(
|
||||||
|
Id: Guid.NewGuid(),
|
||||||
|
AlbumId: Guid.NewGuid(),
|
||||||
|
LibraryId: Guid.NewGuid(),
|
||||||
|
Path: "/music/queen/a-night-at-the-opera/07-youre-my-best-friend.flac",
|
||||||
|
Metadata: new(
|
||||||
|
Title: "You're My Best Friend",
|
||||||
|
OriginalTitle: "You're My Best Friend",
|
||||||
|
Description: "A song by the British rock band Queen, written by bass guitarist John Deacon. It was originally released on the album A Night at the Opera in 1975 and as a single in 1976.",
|
||||||
|
Disambiguation: "album version",
|
||||||
|
ReleaseInfo: new(
|
||||||
|
OriginalReleaseDate: new DateOnly(1976, 6, 18),
|
||||||
|
OriginalReleaseYear: 1976,
|
||||||
|
ReReleaseDate: new DateOnly(2011, 11, 21),
|
||||||
|
ReReleaseYear: 2011,
|
||||||
|
ReleaseCountry: ReleaseCountry.GB,
|
||||||
|
ReleaseVersion: "Original"
|
||||||
|
),
|
||||||
|
Language: new(
|
||||||
|
LanguageCode: "en",
|
||||||
|
LanguageName: "English",
|
||||||
|
NativeName: "English"
|
||||||
|
),
|
||||||
|
OriginalLanguage: new(
|
||||||
|
LanguageCode: "en",
|
||||||
|
LanguageName: "English",
|
||||||
|
NativeName: "English"
|
||||||
|
),
|
||||||
|
Tags: [
|
||||||
|
new(Name: "classic"),
|
||||||
|
new(Name: "love")
|
||||||
|
],
|
||||||
|
Genres: [
|
||||||
|
new(Name: "Rock"),
|
||||||
|
new(Name: "Pop Rock")
|
||||||
|
],
|
||||||
|
DurationInSeconds: 181,
|
||||||
|
SampleRate: 44100,
|
||||||
|
Channels: 2,
|
||||||
|
BitDepth: 16,
|
||||||
|
AudioCodec: "FLAC",
|
||||||
|
Bitrate: 912,
|
||||||
|
IsVideo: false
|
||||||
|
),
|
||||||
|
Script: "Latn",
|
||||||
|
Key: MusicKey.BMajor,
|
||||||
|
Bpm: 118,
|
||||||
|
Work: new MusicWorkDto(
|
||||||
|
MusicBrainzWorkId: Guid.NewGuid(),
|
||||||
|
Title: "You're My Best Friend",
|
||||||
|
Type: "Song",
|
||||||
|
Languages: [new LanguageInfoDto(LanguageCode: "en", LanguageName: "English", NativeName: "English")],
|
||||||
|
Iswcs: ["T-010489707-6"]
|
||||||
|
),
|
||||||
|
Isrcs: [
|
||||||
|
new(Value: "GBUM71029609")
|
||||||
|
],
|
||||||
|
Moods: [
|
||||||
|
new(Name: "happy"),
|
||||||
|
new(Name: "warm")
|
||||||
|
],
|
||||||
|
MusicBrainzRecordingId: Guid.NewGuid(),
|
||||||
|
MusicBrainzTrackId: Guid.NewGuid(),
|
||||||
|
Contributors: [
|
||||||
|
new MediaContributorReferenceDto(
|
||||||
|
ContributorId: Guid.NewGuid(),
|
||||||
|
Role: MediaContributorRole.Vocals
|
||||||
|
),
|
||||||
|
new MediaContributorReferenceDto(
|
||||||
|
ContributorId: Guid.NewGuid(),
|
||||||
|
Role: MediaContributorRole.Guitar
|
||||||
|
)
|
||||||
|
],
|
||||||
|
Ratings: [
|
||||||
|
new(
|
||||||
|
Value: 4.2M,
|
||||||
|
MaxValue: 5,
|
||||||
|
Source: AudioRatingSource.MusicBrainz,
|
||||||
|
VoteCount: 1234
|
||||||
|
),
|
||||||
|
new(
|
||||||
|
Value: 4.4M,
|
||||||
|
MaxValue: 5,
|
||||||
|
Source: AudioRatingSource.LastFm,
|
||||||
|
VoteCount: 567
|
||||||
|
)
|
||||||
|
],
|
||||||
|
TrackNumber: 7,
|
||||||
|
DiscNumber: 1,
|
||||||
|
CreatedOnUtc: new DateTime(2025, 1, 15, 10, 30, 0, DateTimeKind.Utc),
|
||||||
|
UpdatedOnUtc: new DateTime(2025, 1, 20, 14, 45, 0, DateTimeKind.Utc)
|
||||||
|
)
|
||||||
|
],
|
||||||
|
CoverPath: "/media/music/Queen-3b3a19f3/A Night at the Opera-e8d52f7b/cover.jpg",
|
||||||
|
Artwork: [new MediaArtworkDto(ArtworkType.Cover, 0, "/media/music/Queen-3b3a19f3/A Night at the Opera-e8d52f7b/cover.jpg")])
|
||||||
);
|
);
|
||||||
|
|
||||||
Response(401, "Authentication required.", "application/problem+json",
|
Response(401, "Authentication required.", "application/problem+json",
|
||||||
|
|||||||
+5
-1
@@ -13,6 +13,7 @@ using Lumina.Contracts.Responses.MediaLibrary.AudioLibrary.MusicLibrary.Artists;
|
|||||||
using Lumina.Domain.SharedKernel.Common.Enums.AudioLibrary;
|
using Lumina.Domain.SharedKernel.Common.Enums.AudioLibrary;
|
||||||
using Lumina.Domain.SharedKernel.Common.Enums.Common;
|
using Lumina.Domain.SharedKernel.Common.Enums.Common;
|
||||||
using Lumina.Domain.SharedKernel.Common.Enums.MediaContributors;
|
using Lumina.Domain.SharedKernel.Common.Enums.MediaContributors;
|
||||||
|
using Lumina.Domain.SharedKernel.Common.Enums.MediaLibrary;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
@@ -820,9 +821,12 @@ public class AddArtistEndpointSummary : Summary<AddArtistEndpoint, AddArtistRequ
|
|||||||
CreatedOnUtc: new DateTime(2025, 1, 15, 10, 30, 0, DateTimeKind.Utc),
|
CreatedOnUtc: new DateTime(2025, 1, 15, 10, 30, 0, DateTimeKind.Utc),
|
||||||
UpdatedOnUtc: new DateTime(2025, 1, 20, 14, 45, 0, DateTimeKind.Utc)
|
UpdatedOnUtc: new DateTime(2025, 1, 20, 14, 45, 0, DateTimeKind.Utc)
|
||||||
)
|
)
|
||||||
]
|
],
|
||||||
|
CoverPath: "/media/music/Queen-3b3a19f3/A Night at the Opera-e8d52f7b/cover.jpg",
|
||||||
|
Artwork: [new MediaArtworkDto(ArtworkType.Cover, 0, "/media/music/Queen-3b3a19f3/A Night at the Opera-e8d52f7b/cover.jpg")]
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
CoverPath: "/media/music/Queen-3b3a19f3/cover.jpg",
|
||||||
CreatedOnUtc: new DateTime(2025, 1, 15, 10, 30, 0, DateTimeKind.Utc),
|
CreatedOnUtc: new DateTime(2025, 1, 15, 10, 30, 0, DateTimeKind.Utc),
|
||||||
UpdatedOnUtc: new DateTime(2025, 1, 20, 14, 45, 0, DateTimeKind.Utc)
|
UpdatedOnUtc: new DateTime(2025, 1, 20, 14, 45, 0, DateTimeKind.Utc)
|
||||||
)
|
)
|
||||||
|
|||||||
+6
-2
@@ -8,6 +8,7 @@ using Lumina.Contracts.Responses.MediaLibrary.AudioLibrary.MusicLibrary.Artists;
|
|||||||
using Lumina.Domain.SharedKernel.Common.Enums.AudioLibrary;
|
using Lumina.Domain.SharedKernel.Common.Enums.AudioLibrary;
|
||||||
using Lumina.Domain.SharedKernel.Common.Enums.Common;
|
using Lumina.Domain.SharedKernel.Common.Enums.Common;
|
||||||
using Lumina.Domain.SharedKernel.Common.Enums.MediaContributors;
|
using Lumina.Domain.SharedKernel.Common.Enums.MediaContributors;
|
||||||
|
using Lumina.Domain.SharedKernel.Common.Enums.MediaLibrary;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
@@ -161,9 +162,12 @@ public class GetArtistEndpointSummary : Summary<GetArtistEndpoint, EmptyRequest>
|
|||||||
CreatedOnUtc: new DateTime(2025, 1, 15, 10, 30, 0, DateTimeKind.Utc),
|
CreatedOnUtc: new DateTime(2025, 1, 15, 10, 30, 0, DateTimeKind.Utc),
|
||||||
UpdatedOnUtc: new DateTime(2025, 1, 20, 14, 45, 0, DateTimeKind.Utc)
|
UpdatedOnUtc: new DateTime(2025, 1, 20, 14, 45, 0, DateTimeKind.Utc)
|
||||||
)
|
)
|
||||||
]
|
],
|
||||||
|
CoverPath: "/media/music/Queen-3b3a19f3/A Night at the Opera-e8d52f7b/cover.jpg",
|
||||||
|
Artwork: [new MediaArtworkDto(ArtworkType.Cover, 0, "/media/music/Queen-3b3a19f3/A Night at the Opera-e8d52f7b/cover.jpg")]
|
||||||
)
|
)
|
||||||
]
|
],
|
||||||
|
CoverPath: "/media/music/Queen-3b3a19f3/cover.jpg"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
+189
-2
@@ -8,6 +8,7 @@ using Lumina.Contracts.Responses.MediaLibrary.AudioLibrary.MusicLibrary.Albums;
|
|||||||
using Lumina.Domain.SharedKernel.Common.Enums.AudioLibrary;
|
using Lumina.Domain.SharedKernel.Common.Enums.AudioLibrary;
|
||||||
using Lumina.Domain.SharedKernel.Common.Enums.Common;
|
using Lumina.Domain.SharedKernel.Common.Enums.Common;
|
||||||
using Lumina.Domain.SharedKernel.Common.Enums.MediaContributors;
|
using Lumina.Domain.SharedKernel.Common.Enums.MediaContributors;
|
||||||
|
using Lumina.Domain.SharedKernel.Common.Enums.MediaLibrary;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
@@ -144,7 +145,103 @@ public class GetArtistAlbumsEndpointSummary : Summary<GetArtistAlbumsEndpoint, E
|
|||||||
],
|
],
|
||||||
CreatedOnUtc: new DateTime(2025, 1, 15, 10, 30, 0, DateTimeKind.Utc),
|
CreatedOnUtc: new DateTime(2025, 1, 15, 10, 30, 0, DateTimeKind.Utc),
|
||||||
UpdatedOnUtc: new DateTime(2025, 1, 20, 14, 45, 0, DateTimeKind.Utc),
|
UpdatedOnUtc: new DateTime(2025, 1, 20, 14, 45, 0, DateTimeKind.Utc),
|
||||||
Tracks: []
|
Tracks:
|
||||||
|
[
|
||||||
|
new(
|
||||||
|
Id: Guid.NewGuid(),
|
||||||
|
AlbumId: Guid.NewGuid(),
|
||||||
|
LibraryId: Guid.NewGuid(),
|
||||||
|
Path: "/music/queen/a-night-at-the-opera/01-bohemian-rhapsody.flac",
|
||||||
|
Metadata: new(
|
||||||
|
Title: "Bohemian Rhapsody",
|
||||||
|
OriginalTitle: "Bohemian Rhapsody",
|
||||||
|
Description: "A song by the British rock band Queen. It was written by Freddie Mercury and originally released on the album A Night at the Opera in 1975.",
|
||||||
|
Disambiguation: "album version",
|
||||||
|
ReleaseInfo: new(
|
||||||
|
OriginalReleaseDate: new DateOnly(1975, 10, 31),
|
||||||
|
OriginalReleaseYear: 1975,
|
||||||
|
ReReleaseDate: new DateOnly(2011, 11, 21),
|
||||||
|
ReReleaseYear: 2011,
|
||||||
|
ReleaseCountry: ReleaseCountry.GB,
|
||||||
|
ReleaseVersion: "Original"
|
||||||
|
),
|
||||||
|
Language: new(
|
||||||
|
LanguageCode: "en",
|
||||||
|
LanguageName: "English",
|
||||||
|
NativeName: "English"
|
||||||
|
),
|
||||||
|
OriginalLanguage: new(
|
||||||
|
LanguageCode: "en",
|
||||||
|
LanguageName: "English",
|
||||||
|
NativeName: "English"
|
||||||
|
),
|
||||||
|
Tags: [
|
||||||
|
new(Name: "classic"),
|
||||||
|
new(Name: "epic")
|
||||||
|
],
|
||||||
|
Genres: [
|
||||||
|
new(Name: "Rock"),
|
||||||
|
new(Name: "Progressive Rock")
|
||||||
|
],
|
||||||
|
DurationInSeconds: 354,
|
||||||
|
SampleRate: 44100,
|
||||||
|
Channels: 2,
|
||||||
|
BitDepth: 16,
|
||||||
|
AudioCodec: "FLAC",
|
||||||
|
Bitrate: 980,
|
||||||
|
IsVideo: false
|
||||||
|
),
|
||||||
|
Script: "Latn",
|
||||||
|
Key: MusicKey.CMajor,
|
||||||
|
Bpm: 72,
|
||||||
|
Work: new MusicWorkDto(
|
||||||
|
MusicBrainzWorkId: Guid.NewGuid(),
|
||||||
|
Title: "Bohemian Rhapsody",
|
||||||
|
Type: "Song",
|
||||||
|
Languages: [new LanguageInfoDto(LanguageCode: "en", LanguageName: "English", NativeName: "English")],
|
||||||
|
Iswcs: ["T-010489707-6"]
|
||||||
|
),
|
||||||
|
Isrcs: [
|
||||||
|
new(Value: "GBUM71029604")
|
||||||
|
],
|
||||||
|
Moods: [
|
||||||
|
new(Name: "dramatic"),
|
||||||
|
new(Name: "anxious")
|
||||||
|
],
|
||||||
|
MusicBrainzRecordingId: Guid.NewGuid(),
|
||||||
|
MusicBrainzTrackId: Guid.NewGuid(),
|
||||||
|
Contributors: [
|
||||||
|
new MediaContributorReferenceDto(
|
||||||
|
ContributorId: Guid.NewGuid(),
|
||||||
|
Role: MediaContributorRole.Vocals
|
||||||
|
),
|
||||||
|
new MediaContributorReferenceDto(
|
||||||
|
ContributorId: Guid.NewGuid(),
|
||||||
|
Role: MediaContributorRole.Guitar
|
||||||
|
)
|
||||||
|
],
|
||||||
|
Ratings: [
|
||||||
|
new(
|
||||||
|
Value: 4.5M,
|
||||||
|
MaxValue: 5,
|
||||||
|
Source: AudioRatingSource.MusicBrainz,
|
||||||
|
VoteCount: 2345
|
||||||
|
),
|
||||||
|
new(
|
||||||
|
Value: 4.8M,
|
||||||
|
MaxValue: 5,
|
||||||
|
Source: AudioRatingSource.LastFm,
|
||||||
|
VoteCount: 1234
|
||||||
|
)
|
||||||
|
],
|
||||||
|
TrackNumber: 1,
|
||||||
|
DiscNumber: 1,
|
||||||
|
CreatedOnUtc: new DateTime(2025, 1, 15, 10, 30, 0, DateTimeKind.Utc),
|
||||||
|
UpdatedOnUtc: new DateTime(2025, 1, 20, 14, 45, 0, DateTimeKind.Utc)
|
||||||
|
)
|
||||||
|
],
|
||||||
|
CoverPath: "/media/music/Queen-3b3a19f3/A Night at the Opera-e8d52f7b/cover.jpg",
|
||||||
|
Artwork: [new MediaArtworkDto(ArtworkType.Cover, 0, "/media/music/Queen-3b3a19f3/A Night at the Opera-e8d52f7b/cover.jpg")]
|
||||||
),
|
),
|
||||||
new AlbumResponse(
|
new AlbumResponse(
|
||||||
Id: Guid.NewGuid(),
|
Id: Guid.NewGuid(),
|
||||||
@@ -222,7 +319,97 @@ public class GetArtistAlbumsEndpointSummary : Summary<GetArtistAlbumsEndpoint, E
|
|||||||
],
|
],
|
||||||
CreatedOnUtc: new DateTime(2025, 1, 15, 10, 30, 0, DateTimeKind.Utc),
|
CreatedOnUtc: new DateTime(2025, 1, 15, 10, 30, 0, DateTimeKind.Utc),
|
||||||
UpdatedOnUtc: new DateTime(2025, 1, 20, 14, 45, 0, DateTimeKind.Utc),
|
UpdatedOnUtc: new DateTime(2025, 1, 20, 14, 45, 0, DateTimeKind.Utc),
|
||||||
Tracks: []
|
Tracks:
|
||||||
|
[
|
||||||
|
new(
|
||||||
|
Id: Guid.NewGuid(),
|
||||||
|
AlbumId: Guid.NewGuid(),
|
||||||
|
LibraryId: Guid.NewGuid(),
|
||||||
|
Path: "/music/queen/the-works/01-radio-ga-ga.flac",
|
||||||
|
Metadata: new(
|
||||||
|
Title: "Radio Ga Ga",
|
||||||
|
OriginalTitle: "Radio Ga Ga",
|
||||||
|
Description: "A song by the British rock band Queen, written by Roger Taylor and released on the album The Works in 1984.",
|
||||||
|
Disambiguation: "album version",
|
||||||
|
ReleaseInfo: new(
|
||||||
|
OriginalReleaseDate: new DateOnly(1984, 1, 23),
|
||||||
|
OriginalReleaseYear: 1984,
|
||||||
|
ReReleaseDate: new DateOnly(2011, 11, 21),
|
||||||
|
ReReleaseYear: 2011,
|
||||||
|
ReleaseCountry: ReleaseCountry.GB,
|
||||||
|
ReleaseVersion: "Remastered"
|
||||||
|
),
|
||||||
|
Language: new(
|
||||||
|
LanguageCode: "en",
|
||||||
|
LanguageName: "English",
|
||||||
|
NativeName: "English"
|
||||||
|
),
|
||||||
|
OriginalLanguage: new(
|
||||||
|
LanguageCode: "en",
|
||||||
|
LanguageName: "English",
|
||||||
|
NativeName: "English"
|
||||||
|
),
|
||||||
|
Tags: [
|
||||||
|
new(Name: "classic"),
|
||||||
|
new(Name: "synth-pop")
|
||||||
|
],
|
||||||
|
Genres: [
|
||||||
|
new(Name: "Rock"),
|
||||||
|
new(Name: "Synth-pop")
|
||||||
|
],
|
||||||
|
DurationInSeconds: 349,
|
||||||
|
SampleRate: 44100,
|
||||||
|
Channels: 2,
|
||||||
|
BitDepth: 16,
|
||||||
|
AudioCodec: "FLAC",
|
||||||
|
Bitrate: 920,
|
||||||
|
IsVideo: false
|
||||||
|
),
|
||||||
|
Script: "Latn",
|
||||||
|
Key: MusicKey.FMajor,
|
||||||
|
Bpm: 112,
|
||||||
|
Work: new MusicWorkDto(
|
||||||
|
MusicBrainzWorkId: Guid.NewGuid(),
|
||||||
|
Title: "Radio Ga Ga",
|
||||||
|
Type: "Song",
|
||||||
|
Languages: [new LanguageInfoDto(LanguageCode: "en", LanguageName: "English", NativeName: "English")],
|
||||||
|
Iswcs: ["T-010489707-6"]
|
||||||
|
),
|
||||||
|
Isrcs: [
|
||||||
|
new(Value: "GBUM71029610")
|
||||||
|
],
|
||||||
|
Moods: [
|
||||||
|
new(Name: "dramatic"),
|
||||||
|
new(Name: "uplifting")
|
||||||
|
],
|
||||||
|
MusicBrainzRecordingId: Guid.NewGuid(),
|
||||||
|
MusicBrainzTrackId: Guid.NewGuid(),
|
||||||
|
Contributors: [
|
||||||
|
new MediaContributorReferenceDto(
|
||||||
|
ContributorId: Guid.NewGuid(),
|
||||||
|
Role: MediaContributorRole.Vocals
|
||||||
|
),
|
||||||
|
new MediaContributorReferenceDto(
|
||||||
|
ContributorId: Guid.NewGuid(),
|
||||||
|
Role: MediaContributorRole.Guitar
|
||||||
|
)
|
||||||
|
],
|
||||||
|
Ratings: [
|
||||||
|
new(
|
||||||
|
Value: 4.6M,
|
||||||
|
MaxValue: 5,
|
||||||
|
Source: AudioRatingSource.MusicBrainz,
|
||||||
|
VoteCount: 2100
|
||||||
|
)
|
||||||
|
],
|
||||||
|
TrackNumber: 1,
|
||||||
|
DiscNumber: 1,
|
||||||
|
CreatedOnUtc: new DateTime(2025, 1, 15, 10, 30, 0, DateTimeKind.Utc),
|
||||||
|
UpdatedOnUtc: new DateTime(2025, 1, 20, 14, 45, 0, DateTimeKind.Utc)
|
||||||
|
)
|
||||||
|
],
|
||||||
|
CoverPath: "/media/music/Queen-3b3a19f3/The Works-6d7e8f9a/cover.jpg",
|
||||||
|
Artwork: [new MediaArtworkDto(ArtworkType.Cover, 0, "/media/music/Queen-3b3a19f3/The Works-6d7e8f9a/cover.jpg")]
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
+9
-2
@@ -3,6 +3,7 @@ using FastEndpoints;
|
|||||||
using Lumina.Contracts.Requests.MediaLibrary.AudioLibrary.MusicLibrary.Artists;
|
using Lumina.Contracts.Requests.MediaLibrary.AudioLibrary.MusicLibrary.Artists;
|
||||||
using Lumina.Contracts.Responses.Common;
|
using Lumina.Contracts.Responses.Common;
|
||||||
using Lumina.Contracts.Responses.MediaLibrary.AudioLibrary.MusicLibrary.Albums;
|
using Lumina.Contracts.Responses.MediaLibrary.AudioLibrary.MusicLibrary.Albums;
|
||||||
|
using Lumina.Domain.SharedKernel.Common.Enums.AudioLibrary;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
@@ -44,12 +45,18 @@ public class GetArtistAlbumsLiteEndpointSummary : Summary<GetArtistAlbumsLiteEnd
|
|||||||
new AlbumLiteResponse(
|
new AlbumLiteResponse(
|
||||||
Id: Guid.NewGuid(),
|
Id: Guid.NewGuid(),
|
||||||
Title: "A Night at the Opera",
|
Title: "A Night at the Opera",
|
||||||
TotalTracks: 12
|
TotalTracks: 12,
|
||||||
|
CoverPath: "/media/music/Queen-3b3a19f3/A Night at the Opera-e8d52f7b/cover.jpg",
|
||||||
|
ReleaseYear: 1975,
|
||||||
|
ReleaseTypes: [MusicReleaseType.Album]
|
||||||
),
|
),
|
||||||
new AlbumLiteResponse(
|
new AlbumLiteResponse(
|
||||||
Id: Guid.NewGuid(),
|
Id: Guid.NewGuid(),
|
||||||
Title: "The Works",
|
Title: "The Works",
|
||||||
TotalTracks: 9
|
TotalTracks: 9,
|
||||||
|
CoverPath: "/media/music/Queen-3b3a19f3/The Works-6d7e8f9a/cover.jpg",
|
||||||
|
ReleaseYear: 1984,
|
||||||
|
ReleaseTypes: [MusicReleaseType.Album]
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
CurrentPage = 1,
|
CurrentPage = 1,
|
||||||
|
|||||||
+11
-4
@@ -10,6 +10,7 @@ using Lumina.Contracts.Responses.MediaLibrary.AudioLibrary.MusicLibrary.Artists;
|
|||||||
using Lumina.Domain.SharedKernel.Common.Enums.AudioLibrary;
|
using Lumina.Domain.SharedKernel.Common.Enums.AudioLibrary;
|
||||||
using Lumina.Domain.SharedKernel.Common.Enums.Common;
|
using Lumina.Domain.SharedKernel.Common.Enums.Common;
|
||||||
using Lumina.Domain.SharedKernel.Common.Enums.MediaContributors;
|
using Lumina.Domain.SharedKernel.Common.Enums.MediaContributors;
|
||||||
|
using Lumina.Domain.SharedKernel.Common.Enums.MediaLibrary;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
@@ -173,9 +174,12 @@ public class GetArtistsEndpointSummary : Summary<GetArtistsEndpoint, GetArtistsR
|
|||||||
CreatedOnUtc: new DateTime(2025, 1, 15, 10, 30, 0, DateTimeKind.Utc),
|
CreatedOnUtc: new DateTime(2025, 1, 15, 10, 30, 0, DateTimeKind.Utc),
|
||||||
UpdatedOnUtc: new DateTime(2025, 1, 20, 14, 45, 0, DateTimeKind.Utc)
|
UpdatedOnUtc: new DateTime(2025, 1, 20, 14, 45, 0, DateTimeKind.Utc)
|
||||||
)
|
)
|
||||||
]
|
],
|
||||||
|
CoverPath: "/media/music/Queen-3b3a19f3/A Night at the Opera-e8d52f7b/cover.jpg",
|
||||||
|
Artwork: [new MediaArtworkDto(ArtworkType.Cover, 0, "/media/music/Queen-3b3a19f3/A Night at the Opera-e8d52f7b/cover.jpg")]
|
||||||
)
|
)
|
||||||
]
|
],
|
||||||
|
CoverPath: "/media/music/Queen-3b3a19f3/cover.jpg"
|
||||||
),
|
),
|
||||||
new ArtistResponse(
|
new ArtistResponse(
|
||||||
Id: Guid.NewGuid(),
|
Id: Guid.NewGuid(),
|
||||||
@@ -294,9 +298,12 @@ public class GetArtistsEndpointSummary : Summary<GetArtistsEndpoint, GetArtistsR
|
|||||||
CreatedOnUtc: new DateTime(2025, 1, 15, 10, 30, 0, DateTimeKind.Utc),
|
CreatedOnUtc: new DateTime(2025, 1, 15, 10, 30, 0, DateTimeKind.Utc),
|
||||||
UpdatedOnUtc: new DateTime(2025, 1, 20, 14, 45, 0, DateTimeKind.Utc)
|
UpdatedOnUtc: new DateTime(2025, 1, 20, 14, 45, 0, DateTimeKind.Utc)
|
||||||
)
|
)
|
||||||
]
|
],
|
||||||
|
CoverPath: "/media/music/David Bowie-2b0e5f5a/Heroes-4a5b6c7d/cover.jpg",
|
||||||
|
Artwork: [new MediaArtworkDto(ArtworkType.Cover, 0, "/media/music/David Bowie-2b0e5f5a/Heroes-4a5b6c7d/cover.jpg")]
|
||||||
)
|
)
|
||||||
]
|
],
|
||||||
|
CoverPath: "/media/music/David Bowie-2b0e5f5a/cover.jpg"
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
CurrentPage = 1,
|
CurrentPage = 1,
|
||||||
|
|||||||
+16
-4
@@ -3,6 +3,7 @@ using FastEndpoints;
|
|||||||
using Lumina.Contracts.Requests.MediaLibrary.AudioLibrary.MusicLibrary.Artists;
|
using Lumina.Contracts.Requests.MediaLibrary.AudioLibrary.MusicLibrary.Artists;
|
||||||
using Lumina.Contracts.Responses.Common;
|
using Lumina.Contracts.Responses.Common;
|
||||||
using Lumina.Contracts.Responses.MediaLibrary.AudioLibrary.MusicLibrary.Artists;
|
using Lumina.Contracts.Responses.MediaLibrary.AudioLibrary.MusicLibrary.Artists;
|
||||||
|
using Lumina.Domain.SharedKernel.Common.Enums.Common;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
@@ -27,12 +28,20 @@ public class GetArtistsLiteEndpointSummary : Summary<GetArtistsLiteEndpoint, Get
|
|||||||
ExampleRequest = new GetArtistsLiteRequest(
|
ExampleRequest = new GetArtistsLiteRequest(
|
||||||
CurrentPage: 1,
|
CurrentPage: 1,
|
||||||
PerPage: 48,
|
PerPage: 48,
|
||||||
SearchTerm: "queen"
|
SearchTerm: "queen",
|
||||||
|
FilterAlphaKey: "q",
|
||||||
|
ShouldIgnoreThePrefixForAlphaPicker: true,
|
||||||
|
SortBy: "name",
|
||||||
|
SortOrder: SortOrder.Ascending
|
||||||
);
|
);
|
||||||
|
|
||||||
RequestParam(r => r.CurrentPage, "The page of results to retrieve. Optional.");
|
RequestParam(r => r.CurrentPage, "The page of results to retrieve. Optional.");
|
||||||
RequestParam(r => r.PerPage, "The maximum number of artists to retrieve per page. Optional.");
|
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.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.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.Id, "The Id of the artist.");
|
||||||
ResponseParam<ArtistLiteResponse>(r => r.Name, "The name of the artist.");
|
ResponseParam<ArtistLiteResponse>(r => r.Name, "The name of the artist.");
|
||||||
@@ -44,11 +53,13 @@ public class GetArtistsLiteEndpointSummary : Summary<GetArtistsLiteEndpoint, Get
|
|||||||
[
|
[
|
||||||
new ArtistLiteResponse(
|
new ArtistLiteResponse(
|
||||||
Id: Guid.NewGuid(),
|
Id: Guid.NewGuid(),
|
||||||
Name: "Queen"
|
Name: "Queen",
|
||||||
|
CoverPath: "/media/music/Queen-3b3a19f3/cover.jpg"
|
||||||
),
|
),
|
||||||
new ArtistLiteResponse(
|
new ArtistLiteResponse(
|
||||||
Id: Guid.NewGuid(),
|
Id: Guid.NewGuid(),
|
||||||
Name: "David Bowie"
|
Name: "David Bowie",
|
||||||
|
CoverPath: "/media/music/David Bowie-2b0e5f5a/cover.jpg"
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
CurrentPage = 1,
|
CurrentPage = 1,
|
||||||
@@ -113,7 +124,8 @@ public class GetArtistsLiteEndpointSummary : Summary<GetArtistsLiteEndpoint, Get
|
|||||||
{
|
{
|
||||||
"General.Validation", new[]
|
"General.Validation", new[]
|
||||||
{
|
{
|
||||||
"LibraryIdCannotBeEmpty"
|
"LibraryIdCannotBeEmpty",
|
||||||
|
"InvalidFilterAlphaKey"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
+5
-1
@@ -11,6 +11,7 @@ using Lumina.Contracts.Responses.MediaLibrary.AudioLibrary.MusicLibrary.Artists;
|
|||||||
using Lumina.Domain.SharedKernel.Common.Enums.AudioLibrary;
|
using Lumina.Domain.SharedKernel.Common.Enums.AudioLibrary;
|
||||||
using Lumina.Domain.SharedKernel.Common.Enums.Common;
|
using Lumina.Domain.SharedKernel.Common.Enums.Common;
|
||||||
using Lumina.Domain.SharedKernel.Common.Enums.MediaContributors;
|
using Lumina.Domain.SharedKernel.Common.Enums.MediaContributors;
|
||||||
|
using Lumina.Domain.SharedKernel.Common.Enums.MediaLibrary;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
@@ -817,9 +818,12 @@ public class UpdateArtistEndpointSummary : Summary<UpdateArtistEndpoint, UpdateA
|
|||||||
CreatedOnUtc: new DateTime(2025, 1, 15, 10, 30, 0, DateTimeKind.Utc),
|
CreatedOnUtc: new DateTime(2025, 1, 15, 10, 30, 0, DateTimeKind.Utc),
|
||||||
UpdatedOnUtc: new DateTime(2025, 1, 20, 14, 45, 0, DateTimeKind.Utc)
|
UpdatedOnUtc: new DateTime(2025, 1, 20, 14, 45, 0, DateTimeKind.Utc)
|
||||||
)
|
)
|
||||||
]
|
],
|
||||||
|
CoverPath: "/media/music/Queen-3b3a19f3/A Night at the Opera-e8d52f7b/cover.jpg",
|
||||||
|
Artwork: [new MediaArtworkDto(ArtworkType.Cover, 0, "/media/music/Queen-3b3a19f3/A Night at the Opera-e8d52f7b/cover.jpg")]
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
CoverPath: "/media/music/Queen-3b3a19f3/cover.jpg",
|
||||||
CreatedOnUtc: new DateTime(2025, 1, 15, 10, 30, 0, DateTimeKind.Utc),
|
CreatedOnUtc: new DateTime(2025, 1, 15, 10, 30, 0, DateTimeKind.Utc),
|
||||||
UpdatedOnUtc: new DateTime(2025, 1, 20, 14, 45, 0, DateTimeKind.Utc)
|
UpdatedOnUtc: new DateTime(2025, 1, 20, 14, 45, 0, DateTimeKind.Utc)
|
||||||
)
|
)
|
||||||
|
|||||||
+1
-1
@@ -308,7 +308,7 @@ public class AddBookEndpointSummary : Summary<AddBookEndpoint, AddBookRequest>
|
|||||||
MetadataProvider: default,
|
MetadataProvider: default,
|
||||||
CreatedOnUtc: DateTime.UtcNow,
|
CreatedOnUtc: DateTime.UtcNow,
|
||||||
UpdatedOnUtc: default,
|
UpdatedOnUtc: default,
|
||||||
CoverPath: null
|
CoverPath: "/media/books/tolkien/the-fellowship-of-the-ring/cover.jpg"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -147,7 +147,7 @@ public class GetBooksEndpointSummary : Summary<GetBooksEndpoint, GetBooksRequest
|
|||||||
MetadataProvider: default,
|
MetadataProvider: default,
|
||||||
CreatedOnUtc: DateTime.UtcNow,
|
CreatedOnUtc: DateTime.UtcNow,
|
||||||
UpdatedOnUtc: default,
|
UpdatedOnUtc: default,
|
||||||
CoverPath: null
|
CoverPath: "/media/books/tolkien/the-fellowship-of-the-ring/cover.jpg"
|
||||||
),
|
),
|
||||||
new(
|
new(
|
||||||
Id: Guid.NewGuid(),
|
Id: Guid.NewGuid(),
|
||||||
@@ -240,7 +240,7 @@ public class GetBooksEndpointSummary : Summary<GetBooksEndpoint, GetBooksRequest
|
|||||||
MetadataProvider: default,
|
MetadataProvider: default,
|
||||||
CreatedOnUtc: DateTime.UtcNow,
|
CreatedOnUtc: DateTime.UtcNow,
|
||||||
UpdatedOnUtc: default,
|
UpdatedOnUtc: default,
|
||||||
CoverPath: null
|
CoverPath: "/media/books/tolkien/the-two-towers/cover.jpg"
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
CurrentPage = 1,
|
CurrentPage = 1,
|
||||||
|
|||||||
+2
-2
@@ -57,13 +57,13 @@ public class GetBooksLiteEndpointSummary : Summary<GetBooksLiteEndpoint, GetBook
|
|||||||
Id: Guid.NewGuid(),
|
Id: Guid.NewGuid(),
|
||||||
Title: "The Fellowship of the Ring",
|
Title: "The Fellowship of the Ring",
|
||||||
ReleaseYear: 1954,
|
ReleaseYear: 1954,
|
||||||
CoverPath: null
|
CoverPath: "/media/books/tolkien/the-fellowship-of-the-ring/cover.jpg"
|
||||||
),
|
),
|
||||||
new(
|
new(
|
||||||
Id: Guid.NewGuid(),
|
Id: Guid.NewGuid(),
|
||||||
Title: "The Two Towers",
|
Title: "The Two Towers",
|
||||||
ReleaseYear: 1954,
|
ReleaseYear: 1954,
|
||||||
CoverPath: null
|
CoverPath: "/media/books/tolkien/the-two-towers/cover.jpg"
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
CurrentPage = 1,
|
CurrentPage = 1,
|
||||||
|
|||||||
Reference in new issue
Block a user