Request Body Example:

{
  "record_id": "a8e2ed9a-0499-417a-bebc-b06213a09bb7",
  "question": "What is the capital of France?",
  "answer": "Paris"
}

{
        title: '',
        category: '',
        description: '',
        questions: [
            {
                question: '',
                answer: '',
                hint: '',
            },
        ],
}

📗 200 Success Response

Response Example:

{
    "message": "Flashcard created successfully",
    "data": {
        "Record_ID": "a8e2ed9a-0499-417a-bebc-b06213a09bb7",
        "Flashcard_Num": 4,
        "Question": "What is the capital of France?",
        "Answer": "Paris",
        "Date": "2025-04-16T08:38:14.952679",
        "Hint": null
    }
}

❌ 404 Not Found Response

Response Example:

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>Error</title>
</head>

<body>
    <pre>Cannot POST /flashcards/flashcard</pre>
</body>

</html>

⚠️ 500 Internal Server Error

Response Example:

{
    "error": "invalid input syntax for type uuid: \\"a8e2ed9a-0499-417a-bebc-b06213a09b\\""
}