1
|
package eu.dnetlib.repo.manager.service.controllers;
|
2
|
|
3
|
import eu.dnetlib.usagestats.sushilite.ReportResponseWrapper;
|
4
|
import io.swagger.annotations.Api;
|
5
|
import org.json.JSONException;
|
6
|
import org.springframework.http.MediaType;
|
7
|
import org.springframework.web.bind.annotation.RequestMapping;
|
8
|
import org.springframework.web.bind.annotation.RequestMethod;
|
9
|
import org.springframework.web.bind.annotation.ResponseBody;
|
10
|
import org.springframework.web.bind.annotation.RestController;
|
11
|
|
12
|
@RestController
|
13
|
@RequestMapping(value = "/sushilite")
|
14
|
@Api(description = "Sushi-Lite API", tags = {"sushilite"})
|
15
|
public interface SushiliteApi {
|
16
|
|
17
|
@RequestMapping(value = "/getReportResults", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
|
18
|
@ResponseBody
|
19
|
ReportResponseWrapper getReportResults(String Report,
|
20
|
String Release,
|
21
|
String RequestorID,
|
22
|
String BeginDate,
|
23
|
String EndDate,
|
24
|
String RepositoryIdentifier,
|
25
|
String ItemIdentifier,
|
26
|
String ItemDataType,
|
27
|
String Granularity,
|
28
|
String Pretty) throws JSONException;
|
29
|
|
30
|
}
|