ignoring non aoi interfaces
This commit is contained in:
parent
9633710cec
commit
9ca8aed160
|
@ -472,8 +472,16 @@ public class RepositoryServiceImpl implements RepositoryService {
|
||||||
// String rs = restTemplate.getForObject(uriComponents.toUri(), String.class);
|
// String rs = restTemplate.getForObject(uriComponents.toUri(), String.class);
|
||||||
ApiDetailsResponse rs = restTemplate.getForObject(uriComponents.toUri(), ApiDetailsResponse.class);
|
ApiDetailsResponse rs = restTemplate.getForObject(uriComponents.toUri(), ApiDetailsResponse.class);
|
||||||
|
|
||||||
return converter.toRepositoryInterfaceList(rs.getApi());
|
|
||||||
|
|
||||||
|
// TODO STOP FILTERING OUT "sword", "rest", etc AND FIX UI!
|
||||||
|
List<ApiDetails> res = new ArrayList<>();
|
||||||
|
|
||||||
|
for (ApiDetails det: rs.getApi()) {
|
||||||
|
if (det.getProtocol().equals("oai"))
|
||||||
|
res.add(det);
|
||||||
|
}
|
||||||
|
|
||||||
|
return converter.toRepositoryInterfaceList(res);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue