feat:인터뷰 시나리오 MD 파일 업로드 일괄 생성 기능
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -151,6 +151,25 @@ public function destroyQuestion(int $id): JsonResponse
|
||||
return response()->json(['message' => '삭제되었습니다.']);
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
// MD 파일 일괄 가져오기
|
||||
// ============================================================
|
||||
|
||||
public function bulkImport(Request $request): JsonResponse
|
||||
{
|
||||
$validated = $request->validate([
|
||||
'category_id' => 'required|integer|exists:interview_categories,id',
|
||||
'templates' => 'required|array|min:1',
|
||||
'templates.*.name' => 'required|string|max:200',
|
||||
'templates.*.questions' => 'required|array|min:1',
|
||||
'templates.*.questions.*' => 'required|string|max:500',
|
||||
]);
|
||||
|
||||
$result = $this->service->bulkImport($validated['category_id'], $validated['templates']);
|
||||
|
||||
return response()->json($result, 201);
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
// 세션 API
|
||||
// ============================================================
|
||||
|
||||
Reference in New Issue
Block a user