aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/services
diff options
context:
space:
mode:
authorJvD_Ericsson <jeff.van.dam@est.tech>2023-08-25 13:46:04 +0100
committerVasyl Razinkov <vasyl.razinkov@est.tech>2023-08-30 10:37:05 +0000
commit243e567a44b042d9792f3436dedff9eeda8f720f (patch)
tree878d528d18b19613c5b2f97bbe7b081e9dfe8285 /catalog-ui/src/app/ng2/services
parent2ceeaf89e5ec648de8e1496bdf67352c3edbf41a (diff)
UI support for service update via tosca template import
Issue-ID: SDC-4604 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: I68f7640a254d0636cb967c15d51522b8c8a7abfc
Diffstat (limited to 'catalog-ui/src/app/ng2/services')
-rw-r--r--catalog-ui/src/app/ng2/services/component-services/topology-template.service.ts4
1 files changed, 4 insertions, 0 deletions
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<any>(this.baseUrl + this.getServerTypeUrl(componentType) + componentId + '/toscaTemplate', file)
+ }
+
getFullComponent(componentType: string, uniqueId: string): Observable<Component> {
return this.http.get<Component>(this.baseUrl + this.getServerTypeUrl(componentType) + uniqueId);
}