{
"user": {"id": "dXXX", "otherdata": ...},
"isExamSimulation": bool, // from frontend checkbox
"file": {"type": "moodlexml", "contents": file xml as string}
}
check authorization (user is teacher, user is teacher of that course)
convert XML to JSON
for each question block in the JSON load it into DB questions table (with loadedByUser, exam tag, official tag (if uploaded by teacher, for now always true), course, incremental ID for each question, quiz ID (quiz is a set of questions uploaded with the same file))
POST /v1/uploadQuestionsFile
Request body:
Needed models: Quiz, Question