POST api/courses/content/exam-result

Request Information

URI Parameters

None.

Body Parameters

ExamModel
NameDescriptionTypeAdditional information
ExamID

integer

None.

Name

string

None.

Creator

integer

None.

NumberOfQuestion

integer

None.

WrongAnswer

boolean

None.

Arrangement

integer

None.

IsTimeLimit

boolean

None.

TimeLimit

integer

None.

MinScore

integer

None.

ExamQuestions

Collection of QuestionModel

None.

UserExamID

integer

None.

Overall

decimal number

None.

Passed

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ExamQuestions": [
    {
      "$id": "2",
      "QuestionAnswers": [
        {
          "$id": "3",
          "AnswerID": 1,
          "QuestionID": 1,
          "OptionText": "sample string 2",
          "IsAnswer": true,
          "AnswerOrder": 4,
          "Creator": 5,
          "CreateDate": "2020-11-25T22:21:55.8179435+03:30"
        },
        {
          "$ref": "3"
        }
      ],
      "UserChoice": 1,
      "UserExamID": 2,
      "QuestionID": 1,
      "Question": "sample string 2",
      "Creator": 3,
      "CreateDate": "2020-11-25T22:21:55.8179435+03:30"
    },
    {
      "$ref": "2"
    }
  ],
  "UserExamID": 1,
  "Overall": 2.1,
  "Passed": true,
  "ExamID": 1,
  "Name": "sample string 2",
  "Creator": 3,
  "NumberOfQuestion": 4,
  "WrongAnswer": true,
  "Arrangement": 6,
  "IsTimeLimit": true,
  "TimeLimit": 8,
  "MinScore": 9
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ExamModel'.

Response Information

Resource Description

ExamModel
NameDescriptionTypeAdditional information
ExamID

integer

None.

Name

string

None.

Creator

integer

None.

NumberOfQuestion

integer

None.

WrongAnswer

boolean

None.

Arrangement

integer

None.

IsTimeLimit

boolean

None.

TimeLimit

integer

None.

MinScore

integer

None.

ExamQuestions

Collection of QuestionModel

None.

UserExamID

integer

None.

Overall

decimal number

None.

Passed

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "ExamQuestions": [
    {
      "$id": "2",
      "QuestionAnswers": [
        {
          "$id": "3",
          "AnswerID": 1,
          "QuestionID": 1,
          "OptionText": "sample string 2",
          "IsAnswer": true,
          "AnswerOrder": 4,
          "Creator": 5,
          "CreateDate": "2020-11-25T22:21:55.818943+03:30"
        },
        {
          "$ref": "3"
        }
      ],
      "UserChoice": 1,
      "UserExamID": 2,
      "QuestionID": 1,
      "Question": "sample string 2",
      "Creator": 3,
      "CreateDate": "2020-11-25T22:21:55.818943+03:30"
    },
    {
      "$ref": "2"
    }
  ],
  "UserExamID": 1,
  "Overall": 2.1,
  "Passed": true,
  "ExamID": 1,
  "Name": "sample string 2",
  "Creator": 3,
  "NumberOfQuestion": 4,
  "WrongAnswer": true,
  "Arrangement": 6,
  "IsTimeLimit": true,
  "TimeLimit": 8,
  "MinScore": 9
}