Type of change
- API tweak: Add new parameter or new result fields to actual API endpoints
- API extension: Add new API endpoints
Proposal description
Currently, the API only allows for applying one filter criteria at a time to getAlbumList2
(e.g. if you’re getting albums by genre you can’t additionally filter to within a specific year range, or sort by recently added).
The api should be tweaked, or a new API created, to allow multiple filters and a sort order to be applied simultaneously.
Backward compatibility impact
If this is done with a new getAlbumList3
endpoint, it is not a breaking change
API details
I propose either extending the getAlbumList2 endpoint, or likely creating a new getAlbumList3
endpoint, which allows for multiple filters and a sort order to be applied simultaneously. Server maintainers may want discussion over what exactly the API call should look like, but I think it should be basically the same as getAlbumList2
except you don’t need to set the type
parameter to set any of the optional parameters (fromYear
, toYear
, genre
).
For example, you could call getAlbumList3
with type
=recent, fromYear
=1990, toYear
=2023, genre
=rock, which would mean “get Rock albums from year 1990 through 2023, and sort the result by recently added”
Even better, the genre
option could be changed to genres
to allow the union of multiple genres
Security impacts
N/A
Potential issues
N/A
Alternative solutions
Proposal status
Proposed