Request Body Example:

{
  "question": "What is the capital of Franceeeeeeee?",
  "answer": "Parisssssss"
}

📗 200 Success Response

Response Example:

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

❌ 404 Not Found Response

Response Example:

{
  "status": 404,
  "error": "Not Found",
  "message": "The requested resource could not be found"
}

⚠️ 500 Internal Server Error

Response Example:

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

🔒 400 Bad Request

Response Example:

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

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

<body>
    <pre>SyntaxError: Bad control character in string literal in JSON at position 11 (line 2 column 9)<br> &nbsp; &nbsp;at JSON.parse (&lt;anonymous&gt;)<br> &nbsp; &nbsp;at parse (C:\\Users\\ait98\\OneDrive\\Desktop\\Apps\\node_modules\\body-parser\\lib\\types\\json.js:92:19)<br> &nbsp; &nbsp;at C:\\Users\\ait98\\OneDrive\\Desktop\\Apps\\node_modules\\body-parser\\lib\\read.js:128:18<br> &nbsp; &nbsp;at AsyncResource.runInAsyncScope (node:async_hooks:211:14)<br> &nbsp; &nbsp;at invokeCallback (C:\\Users\\ait98\\OneDrive\\Desktop\\Apps\\node_modules\\raw-body\\index.js:238:16)<br> &nbsp; &nbsp;at done (C:\\Users\\ait98\\OneDrive\\Desktop\\Apps\\node_modules\\raw-body\\index.js:227:7)<br> &nbsp; &nbsp;at IncomingMessage.onEnd (C:\\Users\\ait98\\OneDrive\\Desktop\\Apps\\node_modules\\raw-body\\index.js:287:7)<br> &nbsp; &nbsp;at IncomingMessage.emit (node:events:518:28)<br> &nbsp; &nbsp;at endReadableNT (node:internal/streams/readable:1698:12)<br> &nbsp; &nbsp;at process.processTicksAndRejections (node:internal/process/task_queues:90:21)</pre>
</body>

</html>