DATAREST-38: Adding self link to related entity representation in addition to providing the Content-Location header.

This commit is contained in:
Jon Brisbin
2012-08-16 07:59:58 -05:00
committed by Jon Brisbin
parent 524eaa07fc
commit 3da1a241e0

View File

@@ -1381,6 +1381,7 @@ public class RepositoryRestController
linkedRepoMeta.entityMetadata(),
selfUri);
res.addLink(new ResourceLink(propertyRel, propertyPath));
res.addLink(new ResourceLink(SELF, selfUri));
publishEvent(new BeforeRenderResourcesEvent(request, repoMeta, res));