Revision 50686
Added by Panagiotis Kanakakis about 6 years ago
ValidatorApiImpl.java | ||
---|---|---|
168 | 168 |
|
169 | 169 |
@Override |
170 | 170 |
public List<StoredJob> getStoredJobsNew(@RequestParam("user") @ApiParam(value = "User email", required = true) String user, |
171 |
@RequestParam("jobType") @ApiParam(value = "Equals to filter job type on validation history page", required = true) String jobType, |
|
172 |
@RequestParam("offset") @ApiParam(value = "Page number", required = true) Integer offset, |
|
173 |
@RequestParam(value = "limit", required = false, defaultValue = "10") @ApiParam(value = "Null value") Integer limit, |
|
174 |
@RequestParam(value = "dateFrom", required = false, defaultValue = "2018-02-08") @ApiParam(value = "Null value") String dateFrom, |
|
175 |
@RequestParam(value = "dateTo", required = false, defaultValue = "2018-02-08") @ApiParam(value = "Null value") String dateTo, |
|
176 |
@RequestParam("validationStatus") @ApiParam(value = "Equals to filter validation jobs", required = true) String validationStatus) throws ValidatorServiceException { |
|
177 |
return getValidationService().getStoredJobsNew(user, jobType, offset, limit, dateFrom, dateTo, validationStatus); |
|
171 |
@RequestParam(value = "jobType", required = false) |
|
172 |
@ApiParam(value = "Equals to filter job type on validation history page") String jobType, |
|
173 |
@RequestParam("offset") @ApiParam(value = "Page number", required = true) String offset, |
|
174 |
@RequestParam(value = "limit", required = false,defaultValue = "10") @ApiParam(value = "Null value") String limit, |
|
175 |
@RequestParam(value = "dateFrom", required = false) @ApiParam(value = "Null value") String dateFrom, |
|
176 |
@RequestParam(value = "dateTo", required = false) @ApiParam(value = "Null value") String dateTo, |
|
177 |
@RequestParam("validationStatus") @ApiParam(value = "Equals to filter validation jobs", required = true) String validationStatus |
|
178 |
) throws ValidatorServiceException { |
|
179 |
return getValidationService().getStoredJobsNew(user, jobType, Integer.parseInt(offset), Integer.parseInt(limit), dateFrom, dateTo, validationStatus); |
|
178 | 180 |
} |
179 | 181 |
|
180 | 182 |
@Override |
Also available in: Unified diff
1. Add swagger explanation for broker/validator paramaters
2. Change subscribe/unsubcribe methods of broker from GET to POST