uoa-repository-manager-service/src/main/java/eu/dnetlib/repo/manager/service/controllers/SushiliteApi.java

34 lines
1.6 KiB
Java
Raw Normal View History

2018-07-27 11:08:26 +02:00
package eu.dnetlib.repo.manager.service.controllers;
2018-08-06 10:55:53 +02:00
import eu.dnetlib.usagestats.sushilite.domain.ReportResponse;
import eu.dnetlib.usagestats.sushilite.domain.ReportResponseWrapper;
2018-07-27 11:08:26 +02:00
import io.swagger.annotations.Api;
import org.json.JSONException;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping(value = "/sushilite")
@Api(description = "Sushi-Lite API", tags = {"sushilite"})
public interface SushiliteApi {
@RequestMapping(value = "/getReportResults", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
@ResponseBody
2018-08-06 10:55:53 +02:00
ReportResponseWrapper getReportResults(String page,
String pageSize,
String Report,
2018-07-27 11:08:26 +02:00
String Release,
String RequestorID,
String BeginDate,
String EndDate,
String RepositoryIdentifier,
String ItemIdentifier,
String ItemDataType,
String Granularity,
String Pretty) throws JSONException;
}