[GSoC update] Distributed Collections: Week 1

Maximilian Kossick maximilian.kossick at googlemail.com
Tue Jun 15 08:42:44 CEST 2010


On Tue, Jun 15, 2010 at 7:25 AM, Varrun Ramani <varrunr at gmail.com> wrote:
> Hi Max
>
> On 29/05/2010, Maximilian Kossick <maximilian.kossick at googlemail.com> wrote:
>>
>> Passing complex searches as http parameters is a dead end in my
>> opinion. A solution that is used in Amarok already is to store the
>> query as XML. You would then be able to post that XML to Ampache.
>
> Going through what you said earlier, regarding posting XML to Ampache,
> what protocol / request method will be used in such a scenario? In a
> REST API, I will get a response to a GET request. I suppose we can use
> POST with content type text/xml, but then How will ampache know if a
> request(query) has been given or not?

You'll need a HTTP POST to send the XML query to the server. And why
should a REST API only support GET? If you want to support both, you
can always check the request type on the server side.


More information about the Amarok-devel mailing list