Revision 49931
Added by Panagiotis Kanakakis over 6 years ago
RepositoryApiImpl.java | ||
---|---|---|
68 | 68 |
@Override |
69 | 69 |
public Aggregations testAggregations() throws JSONException { |
70 | 70 |
|
71 |
int page = 1;
|
|
71 |
int page = 0;
|
|
72 | 72 |
int size = 1000; |
73 | 73 |
|
74 | 74 |
UriComponents uriComponents = UriComponentsBuilder |
... | ... | |
126 | 126 |
int size = 100; |
127 | 127 |
|
128 | 128 |
String countryCode = countriesMap.get(country); |
129 |
countryCode = "GR"; |
|
130 | 129 |
String filterKey = "UNKNOWN"; |
131 | 130 |
if(mode.equalsIgnoreCase("opendoar")) { |
132 | 131 |
filterKey = "openaire____::opendoar"; |
... | ... | |
161 | 160 |
rs = restTemplate.getForObject(uriComponents.toUri(), String.class); |
162 | 161 |
} |
163 | 162 |
for(Repository r : resultSet) |
164 |
r.setCountryName("Greece"); |
|
165 |
// r.setCountryName(getCountryName(r.getCountryCode())); |
|
163 |
r.setCountryName(getCountryName(r.getCountryCode())); |
|
166 | 164 |
return resultSet; |
167 | 165 |
} |
168 | 166 |
|
Also available in: Unified diff
1. Update pom.xml with swagger dep.
2. Change pagination numbers.
3. Add swagger config file.
4. Change piwik queries with new database collumns.