Code Review
/
portal
/
nonrtric-controlpanel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Filtering for all producer columns in EIC
[portal/nonrtric-controlpanel.git]
/
webapp-frontend
/
src
/
app
/
services
/
ei
/
ei.service.ts
diff --git
a/webapp-frontend/src/app/services/ei/ei.service.ts
b/webapp-frontend/src/app/services/ei/ei.service.ts
index
19c5836
..
42ad221
100644
(file)
--- 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 { 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.
/**
* Services for calling the EI endpoints.
@@
-48,28
+48,23
@@
export class EIService {
// injects to variable httpClient
}
// injects to variable httpClient
}
- getProducerIds(): Observable<
S
tring[]> {
+ getProducerIds(): Observable<
s
tring[]> {
const url = this.buildPath(this.eiProducersPath);
const url = this.buildPath(this.eiProducersPath);
- return this.httpClient.get<
S
tring[]>(url);
+ return this.httpClient.get<
s
tring[]>(url);
}
}
- getJobsForProducer(producerId:
S
tring): Observable<EIJob[]> {
+ getJobsForProducer(producerId:
s
tring): Observable<EIJob[]> {
const url = this.buildPath(this.eiProducersPath, producerId, this.eiJobsPath);
return this.httpClient.get<EIJob[]>(url);
}
const url = this.buildPath(this.eiProducersPath, producerId, this.eiJobsPath);
return this.httpClient.get<EIJob[]>(url);
}
- getProducer(producerId:
S
tring): Observable<ProducerRegistrationInfo> {
+ getProducer(producerId:
s
tring): Observable<ProducerRegistrationInfo> {
const url = this.buildPath(this.eiProducersPath, producerId);
return this.httpClient.get<ProducerRegistrationInfo>(url);
}
const url = this.buildPath(this.eiProducersPath, producerId);
return this.httpClient.get<ProducerRegistrationInfo>(url);
}
- getProducerStatus(producerId:
S
tring): Observable<ProducerStatus> {
+ getProducerStatus(producerId:
s
tring): Observable<ProducerStatus> {
const url = this.buildPath(this.eiProducersPath, producerId, this.eiProducerStatusPath);
return this.httpClient.get<ProducerStatus>(url);
}
const url = this.buildPath(this.eiProducersPath, producerId, this.eiProducerStatusPath);
return this.httpClient.get<ProducerStatus>(url);
}
-
- getEIProducers(): Observable<EIProducer[]> {
- const url = this.buildPath(this.eiProducersPath);
- return this.httpClient.get<EIProducer[]>(url);
- }
}
}