POST api/Student/SaveRecExamAnswers

Request Information

URI Parameters

None.

Body Parameters

SaveStudentAnswers
NameDescriptionTypeAdditional information
StudentId

integer

None.

ExamID

integer

None.

TimeTaken

integer

None.

Answers

Collection of UserAnswerStatus

None.

Request Formats

application/json, text/json

Sample:
{
  "StudentId": 1,
  "ExamID": 1,
  "TimeTaken": 1,
  "Answers": [
    {
      "QuestionID": 1,
      "OptionID": 1,
      "IsAnswered": true,
      "IsCorrect": true,
      "TimeTaken": 1
    },
    {
      "QuestionID": 1,
      "OptionID": 1,
      "IsAnswered": true,
      "IsCorrect": true,
      "TimeTaken": 1
    }
  ]
}

application/xml, text/xml

Sample:
<StudentController.SaveStudentAnswers xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OfficersAddaAPI.Controllers">
  <Answers>
    <StudentController.UserAnswerStatus>
      <IsAnswered>true</IsAnswered>
      <IsCorrect>true</IsCorrect>
      <OptionID>1</OptionID>
      <QuestionID>1</QuestionID>
      <TimeTaken>1</TimeTaken>
    </StudentController.UserAnswerStatus>
    <StudentController.UserAnswerStatus>
      <IsAnswered>true</IsAnswered>
      <IsCorrect>true</IsCorrect>
      <OptionID>1</OptionID>
      <QuestionID>1</QuestionID>
      <TimeTaken>1</TimeTaken>
    </StudentController.UserAnswerStatus>
  </Answers>
  <ExamID>1</ExamID>
  <StudentId>1</StudentId>
  <TimeTaken>1</TimeTaken>
</StudentController.SaveStudentAnswers>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.