QuestionWritten
Creates a new written question.
OK
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
POST /api/Questions/Written/Create HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 155
{
"examId": "123e4567-e89b-12d3-a456-426614174000",
"writtenQuestions": [
{
"statementMarkdown": "text",
"points": 1,
"difficultyType": "Easy",
"hasLongAnswer": true
}
]
}
[
{
"questionId": "123e4567-e89b-12d3-a456-426614174000",
"examId": "123e4567-e89b-12d3-a456-426614174000",
"questionType": "ProblemSolving",
"hasLongAnswer": true,
"statementMarkdown": "text",
"score": 1,
"difficultyType": "Easy"
}
]
Retrieves a specific written question by its unique identifier.
The unique identifier of the written question to retrieve.
OK
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
GET /api/Questions/Written/{questionId} HTTP/1.1
Host:
Authorization: Bearer JWT
Accept: */*
{
"questionId": "123e4567-e89b-12d3-a456-426614174000",
"examId": "123e4567-e89b-12d3-a456-426614174000",
"questionType": "ProblemSolving",
"hasLongAnswer": true,
"statementMarkdown": "text",
"score": 1,
"difficultyType": "Easy"
}
Retrieves all written questions associated with a specific exam.
The unique identifier of the exam.
OK
Bad Request
Unauthorized
Forbidden
Internal Server Error
GET /api/Questions/Written/ByExam/{examId} HTTP/1.1
Host:
Authorization: Bearer JWT
Accept: */*
[
{
"questionId": "123e4567-e89b-12d3-a456-426614174000",
"examId": "123e4567-e89b-12d3-a456-426614174000",
"questionType": "ProblemSolving",
"hasLongAnswer": true,
"statementMarkdown": "text",
"score": 1,
"difficultyType": "Easy"
}
]
Updates an existing written question with new details.
OK
Bad Request
Unauthorized
Forbidden
Not Found
Conflict
Internal Server Error
PATCH /api/Questions/Written/Update HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 136
{
"questionId": "123e4567-e89b-12d3-a456-426614174000",
"statementMarkdown": "text",
"points": 1,
"hasLongAnswer": true,
"difficultyType": "Easy"
}
{
"questionId": "123e4567-e89b-12d3-a456-426614174000",
"examId": "123e4567-e89b-12d3-a456-426614174000",
"questionType": "ProblemSolving",
"hasLongAnswer": true,
"statementMarkdown": "text",
"score": 1,
"difficultyType": "Easy"
}
Deletes a specific written question by its unique identifier.
The unique identifier of the written question to delete.
OK
Bad Request
Unauthorized
Forbidden
Not Found
Conflict
Internal Server Error
DELETE /api/Questions/Written/Delete/{questionId} HTTP/1.1
Host:
Authorization: Bearer JWT
Accept: */*
No content