From e1d1a4f7ce7686adae1ad9c77e2bc47c1aad4059 Mon Sep 17 00:00:00 2001 From: Marie JONES <14836007+marie-j@users.noreply.github.com> Date: Wed, 26 Sep 2018 14:15:19 +0200 Subject: [PATCH] feat(kube): add routes for kubeconfig and put method * Add route for GET /kubeconfig * add route for PUT /kube/:serviceName --- src/kube/kube.v6.service.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/kube/kube.v6.service.js b/src/kube/kube.v6.service.js index 8d39cc9d..014c2722 100644 --- a/src/kube/kube.v6.service.js +++ b/src/kube/kube.v6.service.js @@ -17,12 +17,24 @@ angular.module("ovh-api-services").service("OvhApiKubeV6", function ($resource, }, { query: { method: "GET", isArray: true, cache: queryCache }, get: { method: "GET", cache: cache }, + update: { + method: "PUT", + interceptor: interceptor, + params: { + name: "@name" + } + }, + getKubeConfig: { + url: "/kube/:serviceName/kubeconfig", + method: "GET", + cache: cache + }, getServiceInfos: { url: "/kube/:serviceName/serviceInfos", method: "GET", cache: cache }, - putServiceInfos: { + updateServiceInfos: { url: "/kube/:serviceName/serviceInfos", method: "PUT", interceptor: interceptor