filter out only sword and rest

This commit is contained in:
Konstantinos Spyrou 2022-10-10 16:04:06 +00:00
parent 9ca8aed160
commit 0f73e95209
1 changed files with 2 additions and 2 deletions

View File

@ -473,11 +473,11 @@ public class RepositoryServiceImpl implements RepositoryService {
ApiDetailsResponse rs = restTemplate.getForObject(uriComponents.toUri(), ApiDetailsResponse.class);
// TODO STOP FILTERING OUT "sword", "rest", etc AND FIX UI!
// TODO STOP FILTERING OUT "sword", "rest" AND FIX UI!
List<ApiDetails> res = new ArrayList<>();
for (ApiDetails det: rs.getApi()) {
if (det.getProtocol().equals("oai"))
if (!det.getProtocol().equals("sword") && !det.getProtocol().equals("rest"))
res.add(det);
}