abdera-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Calavera" <david.calav...@gmail.com>
Subject Re: Entry Replace Link
Date Tue, 22 Jul 2008 15:19:48 GMT
>From my point of view links shouldn't be modified by the client and you
should ignore what the client is sending you in that elements. Think that
the proper entry is given by the url that the server receives and the edit
link is there in order to the client knows where it can request the entry

Can you explain your app a little? Why do you allow the client could modify
the edit link?

On Tue, Jul 22, 2008 at 4:36 PM, pdk <pdkspam@gmail.com> wrote:

> I'm receiving an entry via a PUT and would like to return the updated entry
> to the client.  My idea is to read the entry, update some of the fields
> (updated time), validate other fields, persist to db, then return the
> updated entry.
> One of the fields that I want to validate is the 'self' and 'edit' links.
>  I
> want to ensure that the links are still in the entry and that they point
> back to the proper entry.  However, I don't see a method that will allow me
> to remove or replace a link from the Entry.
> Is there a way to do this other than creating a new entry and copying field
> by field?
> Thanks,
> philip

David Calavera

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message