Revision 57217
Added by Ioannis Diplas over 4 years ago
ValidatorController.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import eu.dnetlib.api.functionality.ValidatorServiceException; |
4 | 4 |
import eu.dnetlib.domain.data.RepositoryInterface; |
5 |
import eu.dnetlib.domain.functionality.validator.JobResultEntry; |
|
5 | 6 |
import eu.dnetlib.domain.functionality.validator.StoredJob; |
6 | 7 |
import eu.dnetlib.repo.manager.exception.ResourceNotFoundException; |
7 | 8 |
import eu.dnetlib.repo.manager.service.EmailUtils; |
... | ... | |
23 | 24 |
import org.springframework.security.access.prepost.PreAuthorize; |
24 | 25 |
import org.springframework.web.bind.annotation.*; |
25 | 26 |
|
27 |
import javax.ws.rs.Path; |
|
26 | 28 |
|
29 |
|
|
27 | 30 |
@RestController |
28 | 31 |
@RequestMapping(value = "/validator") |
29 | 32 |
@Api(description = "Validator API", tags = {"validator"}) |
... | ... | |
105 | 108 |
return validatorService.getInterfaceInformation(baseUrl); |
106 | 109 |
} |
107 | 110 |
|
111 |
@RequestMapping(value = "/validationSummary/{repoId}" , method = RequestMethod.GET,produces = MediaType.APPLICATION_JSON_VALUE) |
|
112 |
@ResponseBody |
|
113 |
public List<StoredJob> getInterfaceInformation(@PathVariable(value = "repoId") String repoId, @RequestParam(name = "size", defaultValue = "20") int size ) throws ValidatorServiceException, ResourceNotFoundException, JSONException { |
|
114 |
return validatorService.getJobsSummary(repoId,size); |
|
115 |
} |
|
108 | 116 |
|
117 |
|
|
109 | 118 |
@RequestMapping(value = "/complete" , method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE) |
110 | 119 |
@ResponseBody |
111 | 120 |
public void validationCompleted( |
Also available in: Unified diff
Adding job summary