REST API - getAlbumList - random + fromYear/toYear

Got an idea? Missing something? Post your feature request here.

REST API - getAlbumList - random + fromYear/toYear

Unread postby dreagan » 12 Jun 2017, 09:22

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?
dreagan
 
Posts: 16
Joined: 02 Dec 2015, 19:25
Has thanked: 0 time
Been thanked: 4 times

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

Unread postby Madevil » 13 Jun 2017, 08:41

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
User avatar
Madevil
Administrator
Administrator
 
Posts: 911
Joined: 07 Dec 2012, 03:58
Has thanked: 1324 times
Been thanked: 951 times

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

Unread postby dreagan » 13 Jun 2017, 12:30

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. :)
dreagan
 
Posts: 16
Joined: 02 Dec 2015, 19:25
Has thanked: 0 time
Been thanked: 4 times


Return to Feature Requests 6.x

Who is online

Users browsing this forum: No registered users and 1 guest