X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-frontend%2Fsrc%2Fapp%2Fservices%2Fei%2Fei.service.ts;h=d09b5efb1701fd185365395c1933b3ae92cd4e58;hb=e409ac955e6f0654f1721c69e1885bda23e1cf99;hp=976b7b8c0672caa8eeb41bc047bf92e39228af06;hpb=f34ec0823b56ceaf7a6073be6fc530b0d432b37d;p=portal%2Fnonrtric-controlpanel.git diff --git a/webapp-frontend/src/app/services/ei/ei.service.ts b/webapp-frontend/src/app/services/ei/ei.service.ts index 976b7b8..d09b5ef 100644 --- a/webapp-frontend/src/app/services/ei/ei.service.ts +++ b/webapp-frontend/src/app/services/ei/ei.service.ts @@ -22,7 +22,7 @@ import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; import { map } from 'rxjs/operators'; -import { EIJob, EIType, EIProducer } from '../../interfaces/ei.jobs'; +import { EIJob, EIProducer } from '../../interfaces/ei.types'; import { ControlpanelSuccessTransport } from '../../interfaces/controlpanel.types'; /** @@ -34,9 +34,8 @@ import { ControlpanelSuccessTransport } from '../../interfaces/controlpanel.type export class EIService { private basePath = 'api/enrichment'; - private eiTypePath = 'eitypes'; - private eiJobPath = 'eijobs'; - private eiProducerPath = 'eiproducers'; + eiJobPath = 'eijobs'; + eiProducerPath = 'eiproducers'; private buildPath(...args: any[]) { let result = this.basePath; @@ -50,23 +49,6 @@ export class EIService { // injects to variable httpClient } - /** - * Gets version details - * @returns Observable that should yield a String - */ - getVersion(): Observable { - const url = this.buildPath('version'); - return this.httpClient.get(url).pipe( - // Extract the string here - map(res => res['data']) - ); - } - - getEITypes(): Observable { - const url = this.buildPath(this.eiTypePath); - return this.httpClient.get(url); - } - getEIJobs(): Observable { const url = this.buildPath(this.eiJobPath); return this.httpClient.get(url);