On 9 April 2010 09:34, Mark McLoughlin
<markmc@redhat.com> wrote:
On Thu, 2010-04-08 at 12:15 +0200, Geert Jansen wrote:
> If we do return the entity, then the location should be in the <vm
> href="xxx"> attribute in my view.
Does anyone know where the 'href' attribute comes from? Something core
to XML itself?
It does seem to be quite common to have:
<vm href=".../vms/{id}">
...
</vm>
but bburke advocates the Atom link style>
<vm>
<link rel="self" href=".../vms/{id}/" type="application/xml"/>
</vm>
Since we're likely to use <link>s for e.g. actions, I think it makes
sense to use it in this case too
Cheers,
Mark.