[OSM-dev] API 0.6 - DELETE question

Frederik Ramm frederik at remote.org
Mon May 4 18:07:38 BST 2009


Hi,

Karl Guggisberg wrote:
> just wondering why DELETE /api/0.6/[node|way|relation]/#id isn't idempotent,
> i.e.
> why DELETE(primitive) where primitive.visible=false will lead to 410 Gone
> instead of 200 OK?

I guess if you do not already know that the object is deleted (which I 
infer from your trying to delete it!) this means that you have an old 
version of the object. If it would not give you a 410 Gone then it would 
probably give you a 409 Conflict because of the version mismatch!

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frederik at remote.org  ##  N49°00'09" E008°23'33"




More information about the dev mailing list