Increases page size when fetching from external Urls. (Issue #208)

This commit is contained in:
gkolokythas 2019-12-13 13:08:32 +02:00
parent 52334aec6a
commit e96c927f94
1 changed files with 2 additions and 2 deletions

View File

@ -179,7 +179,7 @@ public class RemoteFetcher {
if (externalUrlCriteria.getPageSize() != null) {
completedPath = completedPath.replace("{pageSize}", externalUrlCriteria.getPageSize());
} else {
completedPath = completedPath.replace("{pageSize}", "10");
completedPath = completedPath.replace("{pageSize}", "60");
}
return completedPath;
}
@ -244,7 +244,7 @@ public class RemoteFetcher {
results = new Results(jsonContext.read(jsonDataPath.getPath()
+ "[" + jsonDataPath.getFieldsUrlConfiguration().getName() + "," + jsonDataPath.getFieldsUrlConfiguration().getDescription()
+ "," + jsonDataPath.getFieldsUrlConfiguration().getUri() + "," + jsonDataPath.getFieldsUrlConfiguration().getId() + "]"),
jsonContext.read(jsonPaginationPath));
new HashMap<>(1, 1));
}
results.results = results.results.stream().map(e -> e.entrySet().stream().collect(Collectors.toMap(x -> this.transformKey(jsonDataPath,x.getKey()), Map.Entry::getValue)))
.collect(Collectors.toList());