Revision 50469
Added by Myrto Koukouli over 6 years ago
validator.service.ts | ||
---|---|---|
25 | 25 |
|
26 | 26 |
/* returns true if there is a repository containing the identifier */ |
27 | 27 |
identifyRepository(identifier: string): Observable<boolean> { |
28 |
let url = `${this.apiUrl}/validator/identifyRepository/${identifier}`; |
|
28 |
let url = `${this.apiUrl}/validator/identifyRepository/{url}?url=${identifier}`;
|
|
29 | 29 |
console.log(`knocking on: ${url}`); |
30 | 30 |
return this.http.get(url) |
31 |
.map(res => console.log(res))
|
|
31 |
.map(res => <boolean>res.json())
|
|
32 | 32 |
.catch(this.handleError); |
33 | 33 |
} |
34 | 34 |
|
Also available in: Unified diff
continued with compatibility validate