27 lines
789 B
Java
27 lines
789 B
Java
package eu.dnetlib.repo.manager.service.controllers;
|
|
|
|
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;
|
|
|
|
import java.util.Map;
|
|
|
|
@RestController
|
|
@RequestMapping(value = "/stats")
|
|
@Api(description = "Stats API", tags = {"statistics"})
|
|
public interface StatsApi {
|
|
|
|
|
|
@RequestMapping(value = "/getStatistics" , method = RequestMethod.GET,
|
|
produces = MediaType.APPLICATION_JSON_VALUE)
|
|
@ResponseBody
|
|
Map<String, Object> getStatistics() throws JSONException;
|
|
|
|
|
|
|
|
}
|