Fix for #12. Was passing the parent's path information to the self link generator rather than the child's.
This commit is contained in:
@@ -900,7 +900,7 @@ public class RepositoryRestController
|
||||
linkedEntity,
|
||||
linkedRepoMeta.entityMetadata(),
|
||||
baseUri);
|
||||
URI selfUri = addSelfLink(baseUri, entityDto, repository, id);
|
||||
URI selfUri = addSelfLink(baseUri, entityDto, linkedRepoMeta.name(), linkedId);
|
||||
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
headers.add("Content-Location", selfUri.toString());
|
||||
|
||||
Reference in New Issue
Block a user