use of com.odysseusinc.arachne.portal.api.v1.dto.BaseSubmissionAndAnalysisTypeDTO in project ArachneCentralAPI by OHDSI.
the class BaseSubmissionController method getSubmission.
@ApiOperation("Get submission.")
@GetMapping("/api/v1/analysis-management/submissions/{submissionId}")
public BaseSubmissionAndAnalysisTypeDTO getSubmission(@PathVariable("submissionId") Long submissionId) throws NotExistException {
T submission = submissionService.getSubmissionById(submissionId);
BaseSubmissionDTO dto = conversionService.convert(submission, BaseSubmissionDTO.class);
return new BaseSubmissionAndAnalysisTypeDTO(dto, submission.getSubmissionGroup().getAnalysisType());
}
Aggregations