Page 1 of 1

More questions around CDS API

PostPosted: Sun Jan 08, 2017 3:34 pm
by jdla
Dear all,

I have more questions with respect to the CDS API.
( is there maybe an open source project around from which I can learn more ? )

Particularly, how would you for instance do a search for all 'albums' or 'albumartists' ? Or all starting with 'A' ?
Does one use the search api for that anyway ? Or does it have to be built on the browse api ?

Thanks,

Jos

[Solved]Re: More questions around CDS API

PostPosted: Sun Jan 08, 2017 3:58 pm
by jdla
I noted the ' browse' interface has respective containers for that.
Like 'A_ALB' for audio albums. ( and then with children further organised per letter ).

Would be good to have notes about that in the API documentation ?

Thanks,

Jos

Re: More questions around CDS API

PostPosted: Mon Jan 09, 2017 1:48 pm
by zip
You should use the search API for that - just give it a text and it'll give you results across different groups.

To get all album artists - you could use Browse for it and use the IDs you get from /browse all the way from the root. The main one should keep the container ids constant, but I can't really say it'll be the case forever.

Re: More questions around CDS API

PostPosted: Tue Jan 10, 2017 10:03 pm
by jdla
Well, my first idea was indeed that the search interface would be the one to use.
But that one has no option 'all' , does it ?
That means that if I want to search for all albums I have to do a browse from (audio case) A_ALB, not ?

Thanks,

Jos

Re: More questions around CDS API

PostPosted: Thu Jan 12, 2017 9:17 am
by zip
yes. It's unlikely they will change, but just a warning :-)