Re: [In Development] RESTful API for LMS
expectingtofly <expectingtofly.a9ee3b-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]>
| Newsgroups | gmane.music.equipment.slimdevices.devel |
|---|---|
| Organization | Logitech Squeezebox Forums |
| Message-ID | <[email protected]> |
I'm making reasonable progress with this.
One issue I've come across is that I'm using
Slim::Web::Pages->addRawFunction to hook into the LMS web framework and
capture the api calls.
I've coded up the api calls to manipulate the Player playlist queue,
which, as they are changing existing state (adding or inserting or
deleting the player queue) then they should be the 'PUT' HTTP method.
(e.g.
https://expectingtofly.github.io/LMS_REST_API_Plugin/#/Players/put_players__playerid__queue
)
However, Slim::Web::HTTP specifically does not allow the 'PUT' http
method, so the 'RawFunction' never gets called.
https://github.com/Logitech/slimserver/blob/f5141d75e189929a7387d05085eb727ad149cccb/Slim/Web/HTTP.pm#L386
. It looks like it doesn't support the 'DELETE' method either, which
is probably more of a problem :-(
I presume there is no way around this and I can do nothing about it?
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