Increases page size when fetching from external Urls. (Issue #208)
This commit is contained in:
parent
52334aec6a
commit
e96c927f94
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue