Joe Gregorio wrote:
On 1/29/06, James M Snell <[EMAIL PROTECTED]> wrote:
Oooh.. here's a question.  If I post a entry to your collection once
with a title of "Hello World", it creates an entry with an id of
"tag:bitworking.org,2005-10-21:livestore:HelloWorld".  Fair enough.. but
if I delete that entry and create a new entry with the same title... it
uses the exact same id!  aren't these id things supposed to be
universally unique ;-)

How do you know that it isn't the same entry? Maybe I deleted it by
accident.


Or maybe it's a comment collection whose entries are all generally titled as "Re: atom robots", and the first entry was comment spam that I purged from the system.

To be safe, POST should always be assumed to be a create... e.g. make a new id.
If you want to update an existing entry, use PUT.
If you delete by mistake, use PUT or POST on the member uri to recover it (our implementation has a notion of a soft delete and a purge. when you delete, the thing is still there to recover if you need it)

- James

Reply via email to