Project

General

Profile

1
package eu.dnetlib.repo.manager.service.controllers;
2

    
3
import eu.dnetlib.usagestats.sushilite.domain.ReportResponse;
4
import eu.dnetlib.usagestats.sushilite.domain.ReportResponseWrapper;
5
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
    ReportResponseWrapper getReportResults(String page,
21
                                           String pageSize,
22
                                           String Report,
23
                                           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
}
(12-12/17)