Add SearchAlbum endpoint
This commit is contained in:
@@ -29,6 +29,9 @@ service MetadataService {
|
||||
// GetAlbumTracks retrieves all tracks on an album.
|
||||
rpc GetAlbumTracks(GetAlbumTracksRequest) returns (GetAlbumTracksResponse);
|
||||
|
||||
// SearchAlbums searches for albums by name, optionally filtered by artist.
|
||||
rpc SearchAlbums(SearchAlbumsRequest) returns (SearchAlbumsResponse);
|
||||
|
||||
// SyncArtist triggers ingestion of an artist from external sources.
|
||||
rpc SyncArtist(SyncArtistRequest) returns (SyncArtistResponse);
|
||||
}
|
||||
@@ -79,6 +82,19 @@ message GetAlbumTracksRequest {
|
||||
Provider provider = 2;
|
||||
}
|
||||
|
||||
message SearchAlbumsRequest {
|
||||
string query = 1;
|
||||
string artist = 2;
|
||||
int32 limit = 3;
|
||||
int32 offset = 4;
|
||||
Provider provider = 5;
|
||||
}
|
||||
|
||||
message SearchAlbumsResponse {
|
||||
repeated Album albums = 1;
|
||||
int32 total = 2;
|
||||
}
|
||||
|
||||
message SyncArtistRequest {
|
||||
oneof target {
|
||||
string name = 1;
|
||||
|
||||
Reference in New Issue
Block a user