Skip to main content

Verify Exam 1 Participation

curl https://proyecto-ingenieria-software-6ccv.onrender.com/verificar_examen1/[email protected]
{
  "participo": true
}

Path Parameters

email
string
required
Email address of the student to verify

Response Fields

participo
boolean
true if the student has already submitted Exam 1, false otherwise
The admin account ([email protected]) is excluded from verification checks and will always return false.

Verify Exam 2 Participation

curl https://proyecto-ingenieria-software-6ccv.onrender.com/verificar_examen2/[email protected]
{
  "participo": true
}

Path Parameters

email
string
required
Email address of the student to verify

Response Fields

participo
boolean
true if the student has already submitted Exam 2, false otherwise
The admin account ([email protected]) is excluded from verification checks and will always return false.

Use Cases

The verification endpoints are useful for:
  • Preventing duplicate submissions: Check if a student has already submitted before allowing them to take the exam
  • Access control: Show different UI states based on whether the student has participated
  • Progress tracking: Display which exams a student has completed

Example: Preventing Duplicate Submissions

JavaScript
async function checkExamAccess(email) {
  const response = await fetch(`https://proyecto-ingenieria-software-6ccv.onrender.com/verificar_examen1/${email}`);
  const data = await response.json();
  
  if (data.participo) {
    alert('You have already submitted this exam');
    return false;
  }
  
  return true;
}

// Before showing exam form
if (await checkExamAccess(userEmail)) {
  displayExamForm();
}
Python
def check_exam_access(email: str) -> bool:
    response = requests.get(f"https://proyecto-ingenieria-software-6ccv.onrender.com/verificar_examen1/{email}")
    data = response.json()
    
    if data["participo"]:
        print("You have already submitted this exam")
        return False
    
    return True

# Before showing exam form
if check_exam_access(user_email):
    display_exam_form()

Build docs developers (and LLMs) love