New webservice API

Lubomir I. Ivanov neolit123 at gmail.com
Sun Jan 27 10:18:02 PST 2013


On 27 January 2013 19:14, Dirk Hohndel <dirk at hohndel.org> wrote:
>
> On Jan 27, 2013, at 1:58 AM, Pierre-Yves Chibon wrote:
>
>>> - change in the request mode to use
>>>  - POST is used to upload new dives
>>>  - GET is used to retrieve someone's dives
>>>  - the header 'Content-Type: text/xml' has to be used to retrieve the dives in
>>>      xml format instead of the default json.
>>
>> From a discussion with Aurélien, this has just been changed to the 'Accept'
>> header. 'Content-Type' is meant to describe the format of the data that the
>> client sends to the server, while 'Accept' is meant to ask the server to return
>> the data in a specific format.
>
> This all looks very good! I look forward to seeing Aurélien's new app as well.
>
> Lubomir, will you have a chance to update the desktop app side of this?
>

i saw the new URL in the "new_api" branch as:
http://...../api/dive/get/?login=UID

hopefully the correct one. here is a patch for that.

lubomir
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-webservice.c-new-URL-for-the-webservice-API-update.patch
Type: application/octet-stream
Size: 922 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130127/56cee3c9/attachment.obj>


More information about the subsurface mailing list