On 2 April 2013 10:02, Marcin Juszkiewicz <marcin.juszkiew...@linaro.org> wrote:
> W dniu 26.03.2013 15:18, James Tunnicliffe pisze:
>> There are many scripts in use that parse the web interface for
>> snapshots and releases.linaro.org. This is far from ideal because
>> changes to the web interface can result in the scripts breaking. To
>> alleviate this problem an API has been introduced. The API is very
>> simple, just two new URLs and a new header when downloading files.
>
> Thanks for API - it will make live easier.
>
> I tried it today and have few suggestions:
>
>> http://snapshots.linaro.org/api/ls/quantal/hwpacks/snowball/latest
>> {
>>     "files": [
>>         {
>>             "mtime": "15-Mar-2013 08:29",
>>             "name":
>> "hwpack_linaro-snowball_20130315-269_armhf_supported.manifest.txt",
>>             "size": "762",
>>             "type": "text",
>>             "url":
>> "/quantal/hwpacks/snowball/latest/hwpack_linaro-snowball_20130315-269_armhf_supported.manifest.txt"
>>         },
>
> 1. Please return 'mtime' as timestamp so we do not have to parse date.
> 2. Similar with 'size' which should be in bytes.
> 3. Can 'type' entry be MIME data? text/plain, text/html,
> application/x-tgz etc. Now it is 'text' or 'other'.

Thanks for the suggestions. Should have something out later today.

-- 
James Tunnicliffe

_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to