[Ocs] problem adding a content with a download

Frank Karlitschek karlitschek at kde.org
Thu Sep 16 06:43:23 PDT 2010


On 16.09.2010, at 15:14, Mateu Batle wrote:

> On 09/16/2010 05:58 AM, Frank Karlitschek wrote:
>> [snip]
>>>>>> 2) How we can know if it is type 0, 1 or 2 ? There is no field in the
>>>>>> response specifying that AFAIK.
>>>>>> Check here for an example:
>>>>>> 
>>>>>> https://test.opendesktop.org/v1/content/data/129629
>>>> I seams that I made a stupid error in the 1.x version of the spec. The tag for the distribution type is called "downloadtype" instead of "downloaddistributiontype" So this tag is already taken.
>>>> Do you have an idea how to name it? Something like "downloadmode" perhaps?
>>> Yes, I saw that, it caused me some confusion.
>>> Other suggestions for names, maybe downloadkind or downloadway ?
>>> Up to you.
>> O.K. It´s called downloadway now. :-)
>> I updated the specification. Will be on the test with the next update tomorrow.
>> 
>> Cheers
>> Frank
>> 
>> [snip]
> 
> I see, just to make sure, in get requests like content list / content
> get / content download we use downloadway
> and in post requests like content add / content edit we use downloadtypN
> being N a number, is that right ?

exactly :-)

> 
> thanks Frank !

no problem. Thanks for the API review and the bugreports

Cheers
FRank

> 
> cheers
>  Mat
> 
> 
> _______________________________________________
> Ocs mailing list
> Ocs at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/ocs


--
Frank Karlitschek
karlitschek at kde.org






More information about the Ocs mailing list