REST API - getAlbumList - random + fromYear/toYear

Got an idea? Missing something? Post your feature request here.
dreagan
Posts: 18
Joined: 02 Dec 2015, 19:25
Has thanked: 0
Been thanked: 5 times

REST API - getAlbumList - random + fromYear/toYear

Unread post by dreagan »

I'm starting to use the REST API, and using the getAlbumList endpoint, I wanted to use the type random, but limit it by year-range with fromYear and toYear.

Code: Select all

GET
/rest2/getAlbumListID3.view?type=byYear&size=1&fromYear=2017&toYear=2017
It seems right now, using v2.5.0 of the REST API, fromYear and toYear only work for the type byYear.
Could you make it that these query parameters can be used for list types other than byYear as well?
These users thanked the author dreagan for the post:
Madsonic
Rating: 7.69%
User avatar
Madsonic
Administrator
Administrator
Posts: 984
Joined: 07 Dec 2012, 03:58
Answers: 7
Has thanked: 1201 times
Been thanked: 470 times

Re: REST API - getAlbumList - random + fromYear/toYear

Unread post by Madsonic »

we add a new method to the REST API 2.6.0

where you can use more options together example:

Code: Select all

http://localhost:4040/rest2/getRandomAlbumsID3.view?u=admin&p=admin&v=2.6.0&c=rest&fromYear=1980&toYear=2010&size=20&genre=elec*%20Pop*%20Dance*%20rock*
best regards,
The Madsonic Team
dreagan
Posts: 18
Joined: 02 Dec 2015, 19:25
Has thanked: 0
Been thanked: 5 times

Re: REST API - getAlbumList - random + fromYear/toYear

Unread post by dreagan »

Cool.

Is there any documentation for these changes, or are you still working on it?
I haven't updated to 6.3 yet, but if this is already there, I might make the jump now. :)
Post Reply