Revision 52781
Added by Panagiotis Kanakakis almost 6 years ago
ValidatorApi.java | ||
---|---|---|
9 | 9 |
import io.swagger.annotations.Api; |
10 | 10 |
import org.json.JSONException; |
11 | 11 |
import org.springframework.http.MediaType; |
12 |
import org.springframework.http.ResponseEntity; |
|
12 | 13 |
import org.springframework.web.bind.annotation.*; |
13 | 14 |
|
14 | 15 |
import java.util.List; |
... | ... | |
19 | 20 |
@Api(description = "Validator API", tags = {"validator"}) |
20 | 21 |
public interface ValidatorApi { |
21 | 22 |
|
22 |
@RequestMapping(value = "/submitJobForValidation",method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE ) |
|
23 |
@RequestMapping(value = "/submitJobForValidation",method = RequestMethod.POST, |
|
24 |
consumes = MediaType.APPLICATION_JSON_VALUE, |
|
25 |
produces = MediaType.APPLICATION_JSON_VALUE) |
|
23 | 26 |
@ResponseBody |
24 |
void submitJobForValidation(JobForValidation jobForValidation);
|
|
27 |
JobForValidation submitJobForValidation(JobForValidation jobForValidation) throws ValidatorServiceException;
|
|
25 | 28 |
|
26 |
@RequestMapping(value = "/reSubmitJobForValidation/{jobId}",method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE ) |
|
29 |
@RequestMapping(value = "/reSubmitJobForValidation/{email}/{jobId}",method = RequestMethod.POST, |
|
30 |
consumes = MediaType.APPLICATION_JSON_VALUE, |
|
31 |
produces = MediaType.APPLICATION_JSON_VALUE) |
|
27 | 32 |
@ResponseBody |
28 |
void reSubmitJobForValidation(String jobId) throws JSONException;
|
|
33 |
ResponseEntity<Object> reSubmitJobForValidation(String email,String jobId) throws JSONException, ValidatorServiceException;
|
|
29 | 34 |
|
30 | 35 |
@RequestMapping(value = "/getRuleSets/{mode}" , method = RequestMethod.GET,produces = MediaType.APPLICATION_JSON_VALUE) |
31 | 36 |
@ResponseBody |
Also available in: Unified diff
1. Dockerize service
2. Add authorization checks
3. Handle exceptions ( controller advice, exception package)
4. Login-logout operations bug fixes