QuestionMcq
Creates a new MCQ Question.
Authorizations
Body
examIdstring · uuidOptional
Responses
200
OK
application/json
400
Bad Request
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
404
Not Found
application/json
500
Internal Server Error
application/json
post
POST /api/Questions/Mcq/Create HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 256
{
"examId": "123e4567-e89b-12d3-a456-426614174000",
"mcqQuestions": [
{
"statementMarkdown": "text",
"points": 1,
"difficultyType": "Easy",
"mcqOption": {
"option1": "text",
"option2": "text",
"option3": "text",
"option4": "text",
"isMultiSelect": true,
"answerOptions": "text"
}
}
]
}
[
{
"questionId": "123e4567-e89b-12d3-a456-426614174000",
"examId": "123e4567-e89b-12d3-a456-426614174000",
"questionType": "ProblemSolving",
"statementMarkdown": "text",
"score": 1,
"difficultyType": "Easy",
"mcqOption": {
"option1": "text",
"option2": "text",
"option3": "text",
"option4": "text",
"isMultiSelect": true,
"answerOptions": "text"
}
}
]
Retrieves a specific MCQ question by its unique identifier.
Authorizations
Path parameters
questionIdstring · uuidRequired
The unique identifier of the MCQ question to retrieve.
Responses
200
OK
application/json
400
Bad Request
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
404
Not Found
application/json
500
Internal Server Error
application/json
get
GET /api/Questions/Mcq/{questionId} HTTP/1.1
Host:
Authorization: Bearer JWT
Accept: */*
{
"questionId": "123e4567-e89b-12d3-a456-426614174000",
"examId": "123e4567-e89b-12d3-a456-426614174000",
"questionType": "ProblemSolving",
"statementMarkdown": "text",
"score": 1,
"difficultyType": "Easy",
"mcqOption": {
"option1": "text",
"option2": "text",
"option3": "text",
"option4": "text",
"isMultiSelect": true,
"answerOptions": "text"
}
}
Retrieves all MCQ questions associated with a specific exam.
Authorizations
Path parameters
examIdstring · uuidRequired
The unique identifier of the exam.
Responses
200
OK
application/json
400
Bad Request
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
500
Internal Server Error
application/json
get
GET /api/Questions/Mcq/ByExam/{examId} HTTP/1.1
Host:
Authorization: Bearer JWT
Accept: */*
[
{
"questionId": "123e4567-e89b-12d3-a456-426614174000",
"examId": "123e4567-e89b-12d3-a456-426614174000",
"questionType": "ProblemSolving",
"statementMarkdown": "text",
"score": 1,
"difficultyType": "Easy",
"mcqOption": {
"option1": "text",
"option2": "text",
"option3": "text",
"option4": "text",
"isMultiSelect": true,
"answerOptions": "text"
}
}
]
Updates an existing MCQ question with new details.
Authorizations
Body
questionIdstring · uuidOptional
statementMarkdownstring | nullableOptional
pointsnumber · double | nullableOptional
difficultyTypestring · enumOptionalPossible values:
Responses
200
OK
application/json
400
Bad Request
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
404
Not Found
application/json
409
Conflict
application/json
500
Internal Server Error
application/json
patch
PATCH /api/Questions/Mcq/Update HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 241
{
"questionId": "123e4567-e89b-12d3-a456-426614174000",
"statementMarkdown": "text",
"points": 1,
"difficultyType": "Easy",
"mcqOption": {
"option1": "text",
"option2": "text",
"option3": "text",
"option4": "text",
"isMultiSelect": true,
"answerOptions": "text"
}
}
{
"questionId": "123e4567-e89b-12d3-a456-426614174000",
"examId": "123e4567-e89b-12d3-a456-426614174000",
"questionType": "ProblemSolving",
"statementMarkdown": "text",
"score": 1,
"difficultyType": "Easy",
"mcqOption": {
"option1": "text",
"option2": "text",
"option3": "text",
"option4": "text",
"isMultiSelect": true,
"answerOptions": "text"
}
}
Deletes a specific MCQ question by its unique identifier.
Authorizations
Path parameters
questionIdstring · uuidRequired
The unique identifier of the MCQ question to delete.
Responses
200
OK
400
Bad Request
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
404
Not Found
application/json
409
Conflict
application/json
500
Internal Server Error
application/json
delete
DELETE /api/Questions/Mcq/Delete/{questionId} HTTP/1.1
Host:
Authorization: Bearer JWT
Accept: */*
No content