Re: [In Development] RESTful API for LMS

expectingtofly <expectingtofly.a80p7b-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]>
Newsgroups gmane.music.equipment.slimdevices.devel
Organization Logitech Squeezebox Forums
Message-ID <[email protected]>
mherger wrote: 
> 
> 
> What feature set would you have required? I would agree that it can 
> clearly be overwhelming.
> 
Yes, it wasn't so much that I couldn't use the CLI, it was that I didn't
want it to be the focus of my effort. It was more that it was that that
triggered the thought that there was a need.

mherger wrote: 
> 
> Trust me: I thought of doing this myself before! :-)
> 
> I mostly never tried it because it was more of a nerd's urge rather than
> 
> an actual need to do it.
> 

There is always that risk :-), but I'm enjoying it so far so I'll carry
on with the urge :-)

mherger wrote: 
> 
> What I'd recommend is that you translate as much as possible into CLI 
> commands. Eg. there's no need to re-implement the player status 
> response, which certainly then would be different from what users might 
> have expected or see in different applications. Better use the built-in 
> "status" query to make sure you get the same raw data, then transform 
> this into whatever you think should be the response.
> 
Sure, I'll try and keep it simple.  I did briefly look at the
statusquery, but I was concerned that it looked specifically engineered
to support tightly coupled user interfaces, and I didn't want to fall
into a trap of exposing the same out of a REST API.  I'll look again.

mherger wrote: 
> 
> And instead of restapi I'd probably just use the api path. It's not 
> taken yet, is it?...
> 
good point, I'll change it.

mherger wrote: 
> 
> Would I would put rather far down the list is full data browsing. This 
> is so complicated with the various browse modes, all vs. primary artists
> 
> only, compilations etc. it might be hard to make this return the 
> expected results without adding support for the same set of query 
> parameters.
> 
Yes, good point, I've tried to put that to the back of my mind for the
moment so I could get started :-)



Stuart McLean   

EXPECTINGTOFLY PLUGINS :
    
- *BBC Sounds* : 
  https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin 
- *Virgin Radio (UK)* : 
  https://github.com/expectingtofly/LMS_Virgin_Radio_Plugin 
- *Times Radio* : 
  https://github.com/expectingtofly/LMS_TIMES_RADIO_PLUGIN 
- *Global Player (UK)* : 
  https://github.com/expectingtofly/LMS_GlobalPlayer_Plugin 
  
For BBC Sounds help see the 'BBC Sounds Wiki'
(https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin/wiki).
------------------------------------------------------------------------
expectingtofly's Profile: http://forums.slimdevices.com/member.php?userid=63263
View this thread: http://forums.slimdevices.com/showthread.php?t=115143
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.