Revision 57990
Added by Andreas Mantas over 4 years ago
repository.service.ts | ||
---|---|---|
74 | 74 |
return this.httpClient.get<RepositorySnippet[]>(url, headerOptions); |
75 | 75 |
} |
76 | 76 |
|
77 |
getRepositoriesOfUser(userEmail: string): Observable<Repository[]> {
|
|
78 |
const url = `${this.apiUrl}getRepositoriesOfUser/${userEmail}/0/100`;
|
|
77 |
getRepositoriesOfUser(): Observable<RepositorySnippet[]> {
|
|
78 |
const url = `${this.apiUrl}getRepositoriesOfUser/0/100`; |
|
79 | 79 |
console.log(`knocking on: ${url}`); |
80 |
return this.httpClient.get<Repository[]>(url, headerOptions); |
|
80 |
return this.httpClient.get<RepositorySnippet[]>(url, headerOptions);
|
|
81 | 81 |
} |
82 | 82 |
|
83 | 83 |
|
... | ... | |
94 | 94 |
} |
95 | 95 |
|
96 | 96 |
|
97 |
getUrlsOfUserRepos(userEmail: string): Observable<string[]> {
|
|
98 |
const url = `${this.apiUrl}getUrlsOfUserRepos/${userEmail}/0/100/`;
|
|
97 |
getUrlsOfUserRepos(): Observable<string[]> { |
|
98 |
const url = `${this.apiUrl}getUrlsOfUserRepos/0/100/`; |
|
99 | 99 |
console.log(`knocking on: ${url}`); |
100 | 100 |
return this.httpClient.get<string[]>(url, headerOptions); |
101 | 101 |
} |
... | ... | |
171 | 171 |
return this.httpClient.get<RepositorySnippet[]>(url, {params, withCredentials: true}); |
172 | 172 |
} |
173 | 173 |
|
174 |
getRepositoriesSummaryInfo(userEmail: string): Observable<RepositorySummaryInfo[]> {
|
|
175 |
const url = `${this.dashboardAPIUrl}getRepositoriesSummary/${userEmail}/0/100`;
|
|
174 |
getRepositoriesSummaryInfo(): Observable<RepositorySummaryInfo[]> { |
|
175 |
const url = `${this.dashboardAPIUrl}getRepositoriesSummary/0/100`; |
|
176 | 176 |
console.log(`knocking on: ${url}`); |
177 | 177 |
return this.httpClient.get<RepositorySummaryInfo[]>(url, headerOptions); |
178 | 178 |
} |
Also available in: Unified diff
1. replaced Repository object with updated RepositorySnippet for getRepositoriesOfUsers uses (see ticket #5190)
2. cleared unnecessary 'user' parameters
(revision 57966 and 57968 @ /uoa-repository-manager-service/trunk)