From 253aa416a0299527e96a5b2a7f30eeb1096a65d4 Mon Sep 17 00:00:00 2001 From: Antoine Leblanc Date: Tue, 16 Jun 2020 10:24:38 +0200 Subject: [PATCH] feat(pack.xdsl): add getContactOwner endpoint ref: UXCT-193 Signed-off-by: Antoine Leblanc Co-authored-by: Stephanie Moallic --- src/api/pack/xdsl/pack-xdsl.v6.service.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/api/pack/xdsl/pack-xdsl.v6.service.js b/src/api/pack/xdsl/pack-xdsl.v6.service.js index 889bc95e..27378383 100644 --- a/src/api/pack/xdsl/pack-xdsl.v6.service.js +++ b/src/api/pack/xdsl/pack-xdsl.v6.service.js @@ -77,5 +77,15 @@ angular.module('ovh-api-services').service('OvhApiPackXdslV6', ($resource, OvhAp packName: '@packName', }, }, + getContactOwner: { + method: 'GET', + url: '/pack/xdsl/:packName/contactOwner', + transformResponse(data, headers, status) { + if (status === 200) { + return { data: angular.fromJson(data) }; + } + return data; + }, + }, }); });