Page 1 of 1

CDS API Examples?

PostPosted: Wed Sep 07, 2016 2:35 am
by Peteyus
I've started working on an idea for a mobile app with Serviio utilizing the CDS API. I've been able to successfully connect to the API and to authenticate, but when it comes to /cds/browse I keep getting 404s. There doesn't seem to be anything to query to get valid options for any of the properties listed in the query in the examples, and there aren't any example queries for browse to help understand. Are there any documented examples of use of the API beyond the docs on http://docs.serviiocds.apiary.io/?

Re: CDS API Examples?

PostPosted: Wed Sep 07, 2016 5:16 pm
by zip
You could check network activity in Chrome browser (dev tools) when using MediaBrowser

Re: CDS API Examples?

PostPosted: Wed Sep 07, 2016 8:27 pm
by Peteyus
I tried that, unfortunately my server is not on the box I'm deving on so I don't get any good values (just the back and forth for the mediabrowser content).

I don't see anything on the API that exposes the valid profile_ids, is there an endpoint I can query for those? After some admittedly hacky attempts using a REST client I was able to get results finally and it seems that profile_id accepts any value. But I'd like to ask the API what profiles are present so I can try and select the best one.

Re: CDS API Examples?

PostPosted: Wed Sep 07, 2016 9:59 pm
by zip
any from profiles.xml or application-profiles.xml in your Serviio/conf directory (the id attribute), for example flv_player, ios, etc

Re: CDS API Examples?

PostPosted: Wed Sep 07, 2016 10:28 pm
by Peteyus
I assumed as much... but where I'm trying to create something environment agnostic, I'd really love for there to be a way to query the available profiles from the API. I'll put that in feature requests and deal with it as is for now. Thanks for your help!