TSK-311: fixed self link of WorkbasketSummary

This commit is contained in:
Mustapha Zorgati 2018-02-28 15:56:10 +01:00 committed by Holger Hagen
parent 798e160669
commit 1369a1fb48
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ public class WorkbasketSummaryMapper {
}
private WorkbasketSummaryResource addLinks(WorkbasketSummaryResource resource, WorkbasketSummary summary) {
resource.add(linkTo(WorkbasketController.class).slash(summary.getId()).withSelfRel());
resource.add(linkTo(methodOn(WorkbasketController.class).getWorkbasket(summary.getId())).withSelfRel());
resource.add(linkTo(methodOn(WorkbasketController.class).getDistributionTargetsForWorkbasketId(summary.getId()))
.withRel("getDistributionTargetsForWorkbasketId"));
return resource;