Revision 62455
Added by Antonis Lempesis almost 2 years ago
modules/uoa-repository-manager-service/trunk/src/main/java/eu/dnetlib/repo/manager/service/RepositoryServiceImpl.java | ||
---|---|---|
472 | 472 |
// String rs = restTemplate.getForObject(uriComponents.toUri(), String.class); |
473 | 473 |
ApiDetailsResponse rs = restTemplate.getForObject(uriComponents.toUri(), ApiDetailsResponse.class); |
474 | 474 |
|
475 |
return converter.toRepositoryInterfaceList(rs.getApi()); |
|
476 | 475 |
|
476 |
// TODO STOP FILTERING OUT "sword", "rest", etc AND FIX UI! |
|
477 |
List<ApiDetails> res = new ArrayList<>(); |
|
478 |
|
|
479 |
for (ApiDetails det: rs.getApi()) { |
|
480 |
if (det.getProtocol().equals("oai")) |
|
481 |
res.add(det); |
|
482 |
} |
|
483 |
|
|
484 |
return converter.toRepositoryInterfaceList(res); |
|
477 | 485 |
} |
478 | 486 |
|
479 | 487 |
@Override |
Also available in: Unified diff
ignoring non aoi interfaces