[OSM-dev] DELETE + body not commonly implemented

Christopher Schmidt crschmidt at metacarta.com
Thu May 15 11:36:41 BST 2008


On Thu, May 15, 2008 at 07:23:10AM +0200, bvh wrote:
> On Wed, May 14, 2008 at 09:20:57PM -0400, Christopher Schmidt wrote:
> > One of the bigger changes in the 0.6 API from an implementation
> > perspective for clients may well be the use of a content body on DELETE
> > requests. kleptog found that to be the most difficult part of
> > implementing the changeset/versioning support for JOSM, I think, and I
> > think that a number of libraries may make this more difficult than one
> > would first assume, since DELETE+body is rather unusual.
> > 
> > There are two different ways to implement an alternative without
> > requiring changes to other code, neither of which would be particularly
> > difficult to implement, I don't think: 
> >  
> >  * Use ?query=string&args=forinfo
> >  * Use Version:/Changeset: headers.
> * Use DELETE /api/0.6/way/#id/#version

You still need a place to stick changeset ID, at which point you've got
enough information in the URL to be confusing without associating things
as key/value pairs.


Regards,
-- 
Christopher Schmidt
MetaCarta




More information about the dev mailing list