POST api/Exam/SubmitExam
Request Information
URI Parameters
None.
Body Parameters
SubmitExamDTOName | Description | Type | Additional information |
---|---|---|---|
examId | integer |
None. |
|
userId | integer |
None. |
|
questions | Collection of AddQuestionDTO |
None. |
Request Formats
application/json, text/json
Sample:
{ "examId": 1, "userId": 2, "questions": [ { "questionId": 1, "question": "sample string 2", "examId": 3, "createdByUserId": 4, "questionIndex": 5, "answers": [ { "answer": "sample string 1", "answerId": 2, "isCorrect": true }, { "answer": "sample string 1", "answerId": 2, "isCorrect": true } ] }, { "questionId": 1, "question": "sample string 2", "examId": 3, "createdByUserId": 4, "questionIndex": 5, "answers": [ { "answer": "sample string 1", "answerId": 2, "isCorrect": true }, { "answer": "sample string 1", "answerId": 2, "isCorrect": true } ] } ] }
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
booleanResponse Formats
application/json, text/json
Sample:
true