Re: How to identify existing resource in a POST(a) request
Mike Kelly <[email protected]>
| Newsgroups | gmane.comp.web.services.rest |
|---|---|
| Message-ID | <CANqiZJZq7npyBF9dy-zGiCPE+nf+M248QK2_da3HgEejE=we3g@mail.gmail.com> |
On Fri, Oct 26, 2012 at 6:50 PM, Markus Lanthaler <[email protected]>wrote: > ** > > > Paul, > > on the Web resources are identified by URIs, so that leaves us with your > options 2 and 3. I don’t really see the problems you outline there but a > different one. What if a system assigns multiple URLs to access the same > resource but different representations thereof? For instance > example.com/persons/1.json and example.com/persons/1.xml? Both return > representations of the same resource and both would likely contain just > those URLs in the self-link. So the right link relation to use would be > canonical [1] and not self. > Agree. You might want to use URNs for these canonical URIs too. Cheers, M