Project

General

Profile

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