Skip to main content

Submit Exam 2 Responses

curl -X POST https://proyecto-ingenieria-software-6ccv.onrender.com/guardar_examen2 \
  -H "Content-Type: application/json" \
  -d '{
    "email": "[email protected]",
    "r1": "answer1",
    "r2": "answer2",
    "r3": "answer3",
    "r4": "answer4",
    "r5": "answer5",
    "r6": "answer6",
    "r7": "answer7"
  }'
{
  "mensaje": "Guardado",
  "exito": true
}

Request Body

email
string
required
Student’s email address
r1
string
default:""
Answer to question 1
r2
string
default:""
Answer to question 2
r3
string
default:""
Answer to question 3
r4
string
default:""
Answer to question 4
r5
string
default:""
Answer to question 5
r6
string
default:""
Answer to question 6
r7
string
default:""
Answer to question 7
Exam 2 contains 7 questions, compared to Exam 1 which has 6 questions.

Response Fields

mensaje
string
Success message (“Guardado”)
exito
boolean
Indicates whether the submission was successful

Get All Exam 2 Submissions

curl https://proyecto-ingenieria-software-6ccv.onrender.com/respuestas_examen2
[
  {
    "email": "[email protected]",
    "r1": "answer1",
    "r2": "answer2",
    "r3": "answer3",
    "r4": "answer4",
    "r5": "answer5",
    "r6": "answer6",
    "r7": "answer7",
    "fecha": "2024-01-15T10:30:00",
    "nombre": "John",
    "apellidos": "Doe"
  }
]

Response Fields

email
string
Student’s email address
r1
string
Answer to question 1
r2
string
Answer to question 2
r3
string
Answer to question 3
r4
string
Answer to question 4
r5
string
Answer to question 5
r6
string
Answer to question 6
r7
string
Answer to question 7
fecha
datetime
Submission timestamp
nombre
string
Student’s first name (joined from usuarios table)
apellidos
string
Student’s last name (joined from usuarios table)
Results are ordered by submission date (most recent first) and include user information via LEFT JOIN with the usuarios table.

Build docs developers (and LLMs) love