From 243e567a44b042d9792f3436dedff9eeda8f720f Mon Sep 17 00:00:00 2001 From: JvD_Ericsson Date: Fri, 25 Aug 2023 13:46:04 +0100 Subject: UI support for service update via tosca template import Issue-ID: SDC-4604 Signed-off-by: JvD_Ericsson Change-Id: I68f7640a254d0636cb967c15d51522b8c8a7abfc --- .../app/ng2/services/component-services/topology-template.service.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'catalog-ui/src/app/ng2/services') diff --git a/catalog-ui/src/app/ng2/services/component-services/topology-template.service.ts b/catalog-ui/src/app/ng2/services/component-services/topology-template.service.ts index 812f157c1b..0386a1577a 100644 --- a/catalog-ui/src/app/ng2/services/component-services/topology-template.service.ts +++ b/catalog-ui/src/app/ng2/services/component-services/topology-template.service.ts @@ -76,6 +76,10 @@ export class TopologyTemplateService { this.baseUrl = sdcConfig.api.root + sdcConfig.api.component_api_root; } + putServiceToscaTemplate(componentId: string, componentType: string, file) { + return this.http.put(this.baseUrl + this.getServerTypeUrl(componentType) + componentId + '/toscaTemplate', file) + } + getFullComponent(componentType: string, uniqueId: string): Observable { return this.http.get(this.baseUrl + this.getServerTypeUrl(componentType) + uniqueId); } -- cgit 1.2.3-korg