filter out only sword and rest
This commit is contained in:
parent
9ca8aed160
commit
0f73e95209
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue