Search in sources :

Example 1 with BaseSubmissionDTO

use of com.odysseusinc.arachne.portal.api.v1.dto.BaseSubmissionDTO 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());
}
Also used : BaseSubmissionDTO(com.odysseusinc.arachne.portal.api.v1.dto.BaseSubmissionDTO) BaseSubmissionAndAnalysisTypeDTO(com.odysseusinc.arachne.portal.api.v1.dto.BaseSubmissionAndAnalysisTypeDTO) GetMapping(org.springframework.web.bind.annotation.GetMapping) ApiOperation(io.swagger.annotations.ApiOperation)

Aggregations

BaseSubmissionAndAnalysisTypeDTO (com.odysseusinc.arachne.portal.api.v1.dto.BaseSubmissionAndAnalysisTypeDTO)1 BaseSubmissionDTO (com.odysseusinc.arachne.portal.api.v1.dto.BaseSubmissionDTO)1 ApiOperation (io.swagger.annotations.ApiOperation)1 GetMapping (org.springframework.web.bind.annotation.GetMapping)1