Project

General

Profile

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

    
3
import eu.dnetlib.domain.functionality.validator.StoredJob;
4
import org.json.JSONException;
5
import org.springframework.http.MediaType;
6
import org.springframework.web.bind.annotation.RequestBody;
7
import org.springframework.web.bind.annotation.RequestMapping;
8
import org.springframework.web.bind.annotation.RequestMethod;
9
import org.springframework.web.bind.annotation.RestController;
10

    
11
import java.util.List;
12

    
13
@RestController
14
@RequestMapping(value = "/monitor")
15
public interface MonitorApi {
16

    
17
    @RequestMapping(value = "/getJobsOfUser" , method = RequestMethod.POST,produces = MediaType.APPLICATION_JSON_VALUE)
18
    List<StoredJob> getJobsOfUser(@RequestBody String params) throws JSONException;
19

    
20
    @RequestMapping(value = "/getJobsOfUser" , method = RequestMethod.POST,produces = MediaType.APPLICATION_JSON_VALUE)
21
    int getJobsOfUserPerValidationStatus(@RequestBody String params) throws JSONException;
22

    
23
    @RequestMapping(value = "/getJobSummary" , method = RequestMethod.POST,produces = MediaType.APPLICATION_JSON_VALUE)
24
    StoredJob getJobSummary(@RequestBody String params) throws JSONException;
25

    
26
}
(5-5/11)