[OSM-dev] PUT /api/0.6/{node|way|relation}/{id|create}

Tom Hughes tom at compton.nu
Mon Jun 9 08:26:17 BST 2008


In message <484C8660.4020106 at xs4all.nl>
        Stefan de Konink <skinkie at xs4all.nl> wrote:

> I wonder why we cannot switch to:
>
> PUT /api/0.6
> {{ Payload }}
>
>
> This payload contains:
>
> <osm>
>    <object withid>
>    <object withoutid>
> </osm>
>
>
> This would mean that object that has an node/way/relation nodetag and an 
> id to be updated. And an object without an id be created. In upload 
> sequence an id can be returned.

Well of course we could, the question is what is the benefit of
making the change and is that sufficient to outweigh the costs.

> The proposed change makes:
> - The QUERY_STRING to be irrelevant

It already is. No current API request uses QUERY_STRING.

> - The API more simple (and easier to extend)

That's debatable - the complexity is simply moved from the client
having to choose which URL to use to the server having to have
extra decoding logic.

> - Reduces the amount of requests

Why is that good?

> - Assures the client always get the id back

That is already assured by the current API definition.

Tom

-- 
Tom Hughes (tom at compton.nu)
http://www.compton.nu/




More information about the dev mailing list