From f47c7d114f0a5ac5da662494224488e0de2af4ce Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Mon, 5 May 2014 11:32:17 +0200 Subject: [PATCH] MT#6909 API: add reseller rel to emailtemplates --- lib/NGCP/Panel/Role/API/EmailTemplates.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/NGCP/Panel/Role/API/EmailTemplates.pm b/lib/NGCP/Panel/Role/API/EmailTemplates.pm index a08f825e78..4aff7a7a91 100644 --- a/lib/NGCP/Panel/Role/API/EmailTemplates.pm +++ b/lib/NGCP/Panel/Role/API/EmailTemplates.pm @@ -49,6 +49,7 @@ sub hal_from_item { Data::HAL::Link->new(relation => 'collection', href => sprintf("/api/%s/", $self->resource_name)), Data::HAL::Link->new(relation => 'profile', href => 'http://purl.org/sipwise/ngcp-api/'), Data::HAL::Link->new(relation => 'self', href => sprintf("%s%d", $self->dispatch_path, $item->id)), + Data::HAL::Link->new(relation => 'ngcp:resellers', href => sprintf("/api/resellers/%d", $item->reseller_id)), ], relation => 'ngcp:'.$self->resource_name, );