[UPDATE] MinioAttachmentEntity refType 예시 및 API 설명 수정, 불필요한 공백 제거 (AttachmentController, WorkFlowController)

main
bjkim 9 months ago
parent 2624a87716
commit cb31bb11b6

@ -50,7 +50,12 @@ public class AttachmentController {
@GetMapping("/search") @GetMapping("/search")
public ResponseEntity<Page<MinioAttachmentEntity>> search( public ResponseEntity<Page<MinioAttachmentEntity>> search(
@ParameterObject @ModelAttribute BaseSearchRequest request, @ParameterObject @ModelAttribute BaseSearchRequest request,
@RequestParam(value = "refType", required = false) String refType) { @Parameter(
description = "첨부파일 구분자. 예: WORKFLOW_STEP, DATASET, TRAINING_SCRIPT",
example = "WORKFLOW_STEP"
)
@RequestParam(value = "refType", required = false) String refType
) {
Page<MinioAttachmentEntity> page = minioAttachmentService.search(request, refType); Page<MinioAttachmentEntity> page = minioAttachmentService.search(request, refType);
return ResponseEntity.ok(page); return ResponseEntity.ok(page);
} }

@ -46,7 +46,6 @@ public class WorkFlowController {
return ResponseEntity.ok(page); return ResponseEntity.ok(page);
} }
@Operation(summary = "워크플로우 등록") @Operation(summary = "워크플로우 등록")
@PostMapping @PostMapping
public ResponseEntity<WorkflowEntity> createWorkflow(@RequestBody WorkflowEntity workflow) { public ResponseEntity<WorkflowEntity> createWorkflow(@RequestBody WorkflowEntity workflow) {

@ -35,7 +35,7 @@ public class MinioAttachmentEntity {
@Schema(description = "첨부파일 종류 (DATASET / SCRIPT)", example = "DATASET") @Schema(description = "첨부파일 종류 (DATASET / SCRIPT)", example = "DATASET")
@Comment("첨부파일 종류") @Comment("첨부파일 종류")
@Column(nullable = false, length = 50) @Column(nullable = false, length = 50)
private String refType; // 구분자 (예: DATASET, TRAINING_SCRIPT) private String refType; // 구분자 (예: WORKFLOW_STEP,DATASET, TRAINING_SCRIPT)
@Schema(description = "원본 파일명", example = "step1.yaml") @Schema(description = "원본 파일명", example = "step1.yaml")
@Comment("원본 파일명") @Comment("원본 파일명")

Loading…
Cancel
Save