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=1237b589d9902405ada9814194b9046e2fcf8694;hb=8cf8165763380e8779c9420099faf2197fa161d4;hp=19c583681676aaa223ca5d81bd54c7b0a3dbc7db;hpb=27a30792480f7397800e28a6f01678a561d71d2d;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 19c5836..1237b58 100644 --- a/webapp-frontend/src/app/services/ei/ei.service.ts +++ b/webapp-frontend/src/app/services/ei/ei.service.ts @@ -21,7 +21,7 @@ import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; -import { EIJob, EIProducer, ProducerStatus, ProducerRegistrationInfo } from '../../interfaces/ei.types'; +import { EIJob, ProducerStatus, ProducerRegistrationInfo } from '@interfaces/ei.types'; /** * Services for calling the EI endpoints. @@ -48,28 +48,23 @@ export class EIService { // injects to variable httpClient } - getProducerIds(): Observable { + getProducerIds(): Observable { const url = this.buildPath(this.eiProducersPath); - return this.httpClient.get(url); + return this.httpClient.get(url); } - getJobsForProducer(producerId: String): Observable { + getJobsForProducer(producerId: string): Observable { const url = this.buildPath(this.eiProducersPath, producerId, this.eiJobsPath); return this.httpClient.get(url); } - getProducer(producerId: String): Observable { + getProducer(producerId: string): Observable { const url = this.buildPath(this.eiProducersPath, producerId); return this.httpClient.get(url); } - getProducerStatus(producerId: String): Observable { + getProducerStatus(producerId: string): Observable { const url = this.buildPath(this.eiProducersPath, producerId, this.eiProducerStatusPath); return this.httpClient.get(url); } - - getEIProducers(): Observable { - const url = this.buildPath(this.eiProducersPath); - return this.httpClient.get(url); - } }