|
|
|
|
@ -38,6 +38,16 @@ public class WorkFlowController {
|
|
|
|
|
.orElse(ResponseEntity.notFound().build());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "파이프라인 ID로 워크플로우 단건 조회")
|
|
|
|
|
@GetMapping("/pipeline/{pipelineId}")
|
|
|
|
|
public ResponseEntity<WorkflowEntity> getWorkflowByPipelineId(
|
|
|
|
|
@Parameter(description = "파이프라인 ID", example = "b935cc31-0db5-405e-8ae9-f4dbdc418c59") @PathVariable("pipelineId") String pipelineId) {
|
|
|
|
|
|
|
|
|
|
return workflowService.findBypipelineId(pipelineId)
|
|
|
|
|
.map(ResponseEntity::ok)
|
|
|
|
|
.orElse(ResponseEntity.notFound().build());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "워크플로우 검색 및 페이지네이션 프로젝트 목록 조회")
|
|
|
|
|
@GetMapping("/search")
|
|
|
|
|
public ResponseEntity<Page<WorkflowEntity>> searchProjects(
|
|
|
|
|
|