Package eu.dnetlib.openaire.dsm
Class DsmApiControllerV2
java.lang.Object
eu.dnetlib.openaire.common.AbstractExporterController
eu.dnetlib.openaire.dsm.DsmApiControllerV2
@RestController
@CrossOrigin(origins="*")
@ConditionalOnProperty(value="openaire.exporter.enable.dsm",
havingValue="true")
@RequestMapping("/dsm/2.0")
public class DsmApiControllerV2
extends AbstractExporterController
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.dnetlib.openaire.common.AbstractExporterController
AbstractExporterController.ErrorMessage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaggregationHistory(String dsId) countFirstCollectAfter(String fromDate, String typologyFilter) firstCollectedAfter(String fromDate, String typologyFilter) recentRegisteredV2(int size) org.springframework.http.ResponseEntity<String>transformationDateBefore(String api, long timestamp) Methods inherited from class eu.dnetlib.openaire.common.AbstractExporterController
handle400, handle404, handle500, prepareResponse
-
Constructor Details
-
DsmApiControllerV2
public DsmApiControllerV2()
-
-
Method Details
-
recentRegisteredV2
@GetMapping("/recentregistered/{size}") public SimpleResponse<SimpleDatasourceInfo> recentRegisteredV2(@PathVariable int size) throws Throwable - Throws:
Throwable
-
countFirstCollectAfter
@GetMapping("/countfirstcollect") public Long countFirstCollectAfter(@RequestParam String fromDate, @RequestParam(required=false) String typologyFilter) throws Throwable - Throws:
Throwable
-
firstCollectedAfter
@GetMapping("/firstCollected") public SimpleResponse<SimpleDatasourceInfo> firstCollectedAfter(@RequestParam String fromDate, @RequestParam(required=false) String typologyFilter) throws Throwable - Throws:
Throwable
-
aggregationHistory
@GetMapping(value="/aggregationhistory/{dsId}", produces="application/json") public AggregationHistoryResponseV2 aggregationHistory(@PathVariable String dsId) throws DsmApiException - Throws:
DsmApiException
-
transformationDateBefore
@GetMapping(value="/transformationDateBefore", produces="text/plain") public org.springframework.http.ResponseEntity<String> transformationDateBefore(@RequestParam String api, @RequestParam long timestamp) throws DsmApiException - Throws:
DsmApiException
-