[OSM-talk] Strange api behaviour

SteveC steve at asklater.com
Fri Mar 17 00:16:04 GMT 2006

* @ 17/03/06 12:08:02 AM tom at tom-carden.co.uk wrote:
> On 3/16/06, SteveC <steve at asklater.com> wrote:
> >
> > If an API goes away, the client gets 404. This is used in the REST API
> > to signal a node for example as been deleted. To remove the ambiguity,
> > something which says what the version is can be used.
> >
> When the API version is removed, shouldn't it report 410 (gone, or
> "gone and I really mean it" depending on who you ask)?

Because gone is also used in the API :-)

> Also, calls where the reply format hasn't changed at all should do 301
> (moved permanently) to the new API version? (e.g. if nodes looked the
> same, which they don't this time because of tag format).

ah.. now that's be cool. Don't want to be too anal but what if an old
api call didn't map to a new one too?

have fun,

SteveC steve at asklater.com http://www.asklater.com/steve/

More information about the talk mailing list