1
|
package eu.dnetlib.repo.manager.service.controllers;
|
2
|
|
3
|
import io.swagger.annotations.Api;
|
4
|
import org.json.JSONException;
|
5
|
import org.springframework.http.MediaType;
|
6
|
import org.springframework.web.bind.annotation.RequestMapping;
|
7
|
import org.springframework.web.bind.annotation.RequestMethod;
|
8
|
import org.springframework.web.bind.annotation.ResponseBody;
|
9
|
import org.springframework.web.bind.annotation.RestController;
|
10
|
|
11
|
import java.util.Map;
|
12
|
|
13
|
@RestController
|
14
|
@RequestMapping(value = "/stats")
|
15
|
@Api(description = "Stats API", tags = {"statistics"})
|
16
|
public interface StatsApi {
|
17
|
|
18
|
|
19
|
@RequestMapping(value = "/getStatistics" , method = RequestMethod.GET,
|
20
|
produces = MediaType.APPLICATION_JSON_VALUE)
|
21
|
@ResponseBody
|
22
|
Map<String, String> getStatistics() throws JSONException;
|
23
|
|
24
|
|
25
|
|
26
|
}
|