Page 1 of 1

REST API - getAlbumList - random + fromYear/toYear

Posted: 12 Jun 2017, 09:22
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?

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

Posted: 13 Jun 2017, 08:41
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

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

Posted: 13 Jun 2017, 12:30
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. :)