Skip to content

Commit

Permalink
Add missing method to get all clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Maciaszczyk committed Feb 26, 2019
1 parent 7be4cd7 commit 6ea9887
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/core/services/api/api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ export class ApiService {
return this.http.delete(url, {headers: this.headers});
}

getAllClusters(projectID: string): Observable<ClusterEntity[]> {
const url = `${this.restRoot}/projects/${projectID}/clusters`;
return this.http.get<ClusterEntity[]>(url, {headers: this.headers});
}

getClusters(dc: string, projectID: string): Observable<ClusterEntity[]> {
const url = `${this.restRoot}/projects/${projectID}/dc/${dc}/clusters`;
return this.http.get<ClusterEntity[]>(url, {headers: this.headers});
Expand Down

0 comments on commit 6ea9887

Please sign in to comment.