Atom + Member URIs

Greg Young <[email protected]>
Newsgroups gmane.comp.web.services.rest
Message-ID <CAC9RQtjqFNeAmiqcY_TNrhRHjnBR4tviKqbnNBND99bFbqPajw@mail.gmail.com>
We have been having an interesting discussion here regarding the AtomPub
protocol.

Is it ok to change the MemberUri on a put? EG: Return a Location header and
then point to a new MemberUri?

Example:
You have
/feed/0

you put new data

it returns
Location: /feed/74

The feed is updated and no longer does /feed/0 show up in the feed (top
entry is now /feed/74).

There are some advantages (and disadvantages) to this mechanism and I am
not sure if its allowed or not.

The big thing I see as it breaking is people that want to bookmark all of
MemberUris. Is this a good idea in the first place? This could be worked
around as well by returning a moved with the new link if you use the old
Uri. There is already an edit rel link in the feed itself.

That said most people I see using atom are directly bookmarking their
MemberUris and this would probably break them and is as such a meaningless
practical discussion. But is it protocol compliant?

Cheers,

Greg

-- 
Le doute n'est pas une condition agréable, mais la certitude est absurde.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.