Revision 49534
Added by Claudio Atzori over 6 years ago
DatasourcesApiController.java | ||
---|---|---|
12 | 12 |
import eu.dnetlib.openaire.exporter.model.datasource.db.Datasource; |
13 | 13 |
import eu.dnetlib.openaire.exporter.model.datasource.db.SearchInterfacesEntry; |
14 | 14 |
import eu.dnetlib.openaire.exporter.vocabularies.Country; |
15 |
import io.swagger.annotations.ApiOperation; |
|
16 |
import io.swagger.annotations.ApiResponse; |
|
17 |
import io.swagger.annotations.ApiResponses; |
|
15 | 18 |
import org.apache.commons.lang.StringUtils; |
16 | 19 |
import org.apache.commons.logging.Log; |
17 | 20 |
import org.apache.commons.logging.LogFactory; |
... | ... | |
159 | 162 |
dsDao.updateLongitude(dsId, longitude); |
160 | 163 |
} |
161 | 164 |
|
165 |
@ApiOperation(value = "drop the datasource manager caches", notes = "drop the datasource manager caches", httpMethod = "GET") |
|
166 |
@ApiResponses(value = { |
|
167 |
@ApiResponse(code = 200, message = "OK"), |
|
168 |
@ApiResponse(code = 500, message = "unexpected error") }) |
|
169 |
@RequestMapping(value = "/ds/dropcache.do", method = RequestMethod.GET) |
|
170 |
public void dropDsCaches() { |
|
171 |
dsDao.dropCaches(); |
|
172 |
} |
|
173 |
|
|
174 |
|
|
162 | 175 |
} |
Also available in: Unified diff
added methods to drop the caches, changed project_tsv response, now providing all the organizations participating to a project