|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Entry Replace LinkI'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 |
|
|
Re: Entry Replace LinkFrom 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 operations. 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@...> 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 http://www.thinkincode.net |
|
|
|
| Free Forum Powered by Nabble | Forum Help |