X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-frontend%2Fsrc%2Fapp%2Fservices%2Fanr-xapp%2Fanr-xapp.service.ts;h=e06b708160439a8d7d2ce0ce5157bc910486e709;hb=036e63834ec23b08ceb2f9cece1eaa602d3082bd;hp=a2dfb75eb4da80658e5a9d2ecaefef3efc4a009b;hpb=29ce34b03e4099786f14cd7fc5473305da8750d6;p=portal%2Fric-dashboard.git diff --git a/webapp-frontend/src/app/services/anr-xapp/anr-xapp.service.ts b/webapp-frontend/src/app/services/anr-xapp/anr-xapp.service.ts index a2dfb75e..e06b7081 100644 --- a/webapp-frontend/src/app/services/anr-xapp/anr-xapp.service.ts +++ b/webapp-frontend/src/app/services/anr-xapp/anr-xapp.service.ts @@ -2,14 +2,14 @@ * ========================LICENSE_START================================= * O-RAN-SC * %% - * Copyright (C) 2019 AT&T Intellectual Property and Nokia + * Copyright (C) 2019 AT&T Intellectual Property * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -50,7 +50,7 @@ export class ANRXappService { /** * Gets ANR xApp client version details - * @returns Observable that should yield a DashboardSuccessTransport + * @returns Observable that should yield a String */ getVersion(): Observable { const url = this.buildPath('version'); @@ -66,7 +66,7 @@ export class ANRXappService { */ getHealthAlive(): Observable { const url = this.buildPath('health/alive'); - return this.httpClient.get(url); + return this.httpClient.get(url, { observe: 'response' }); } /** @@ -75,13 +75,13 @@ export class ANRXappService { */ getHealthReady(): Observable { const url = this.buildPath('health/ready'); - return this.httpClient.get(url); + return this.httpClient.get(url, { observe: 'response' }); } - /** - * Gets ANR xApp client version details - * @returns Observable that should yield a DashboardSuccessTransport - */ +/** + * Gets array of gNodeB IDs + * @returns Observable that should yield a string array + */ getgNodeBs(): Observable { const url = this.buildPath('gnodebs'); return this.httpClient.get(url).pipe( @@ -95,7 +95,7 @@ export class ANRXappService { * @param ggnbId Optional parameter for the gNB ID * @param servingCellNrcgi Serving cell NRCGI * @param neighborCellNrpci Neighbor cell NRPCI - * @returns Neighbor cell relation table, which wraps an array + * @returns Observable of ANR neighbor cell relation array */ getNcrtInfo(ggnodeb: string = '', servingCellNrcgi: string = '', neighborCellNrpci: string = ''): Observable { const url = this.buildPath(this.ncrtPath); @@ -115,9 +115,9 @@ export class ANRXappService { * @param servingCellNrcgi Serving cell NRCGI * @param neighborCellNrpci Neighbor cell NRPCI * @param mod Values to store in the specified relation - * @returns Response code only, no data + * @returns Observable that yields a response code only, no data */ - modifyNcr(servingCellNrcgi: string, neighborCellNrpci: string, mod: ANRNeighborCellRelationMod): Observable { + modifyNcr(servingCellNrcgi: string, neighborCellNrpci: string, mod: ANRNeighborCellRelationMod): Observable { const url = this.buildPath(this.ncrtPath, this.servingPath, servingCellNrcgi, this.neighborPath, neighborCellNrpci); return this.httpClient.put(url, mod, { observe: 'response' }); } @@ -126,9 +126,9 @@ export class ANRXappService { * Deletes neighbor cell relation based on Serving Cell NRCGI and Neighbor Cell NRPCI * @param servingCellNrcgi Serving cell NRCGI * @param neighborCellNrpci Neighbor cell NRPCI - * @returns Response code only, no data + * @returns Observable that yields a response code only, no data */ - deleteNcr(servingCellNrcgi: string, neighborCellNrpci: string): Observable { + deleteNcr(servingCellNrcgi: string, neighborCellNrpci: string): Observable { const url = this.buildPath(this.ncrtPath, this.servingPath, servingCellNrcgi, this.neighborPath, neighborCellNrpci); return this.httpClient.delete(url, { observe: 'response' }); }