X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=dashboard%2Fwebapp-frontend%2Fsrc%2Fapp%2Fservices%2Fpolicy%2Fpolicy.service.ts;fp=dashboard%2Fwebapp-frontend%2Fsrc%2Fapp%2Fservices%2Fpolicy%2Fpolicy.service.ts;h=fc0f306c629097fef0ecc807599b715556995c37;hb=8831a02bce715562f3cacce1691bf4d9d3af206b;hp=1c87081822a58121378df7b8d8f65d6f4c287ef8;hpb=01cf1b466e7eebf51789b83fbab5139880c20107;p=nonrtric.git diff --git a/dashboard/webapp-frontend/src/app/services/policy/policy.service.ts b/dashboard/webapp-frontend/src/app/services/policy/policy.service.ts index 1c870818..fc0f306c 100644 --- a/dashboard/webapp-frontend/src/app/services/policy/policy.service.ts +++ b/dashboard/webapp-frontend/src/app/services/policy/policy.service.ts @@ -66,7 +66,7 @@ export class PolicyService { return this.httpClient.get(url); } - getPolicyInstances(policyTypeId: number): Observable { + getPolicyInstances(policyTypeId: string): Observable { const url = this.buildPath(this.policyTypePath, policyTypeId, this.policyPath); return this.httpClient.get(url); } @@ -75,7 +75,7 @@ export class PolicyService { * Gets policy parameters. * @returns Observable that should yield a policy instance */ - getPolicy(policyTypeId: number, policyInstanceId: string): Observable { + getPolicy(policyTypeId: string, policyInstanceId: string): Observable { const url = this.buildPath(this.policyTypePath, policyTypeId, this.policyPath, policyInstanceId); return this.httpClient.get(url); } @@ -87,7 +87,7 @@ export class PolicyService { * @param policyJson Json with the policy content * @returns Observable that should yield a response code, no data */ - putPolicy(policyTypeId: number, policyInstanceId: string, policyJson: string): Observable { + putPolicy(policyTypeId: string, policyInstanceId: string, policyJson: string): Observable { const url = this.buildPath(this.policyTypePath, policyTypeId, this.policyPath, policyInstanceId); return this.httpClient.put(url, policyJson, { observe: 'response' }); } @@ -97,7 +97,7 @@ export class PolicyService { * @param policyTypeId * @returns Observable that should yield a response code, no data */ - deletePolicy(policyTypeId: number, policyInstanceId: string): Observable { + deletePolicy(policyTypeId: string, policyInstanceId: string): Observable { const url = this.buildPath(this.policyTypePath, policyTypeId, this.policyPath, policyInstanceId); return this.httpClient.delete(url, { observe: 'response' }); }