POST api/courses/content/exam

Request Information

URI Parameters

None.

Body Parameters

UserCourseContentModel
NameDescriptionTypeAdditional information
VideoDuration

decimal number

None.

ExamName

string

None.

ExamNumberOfQuestion

integer

None.

ExamIsTimeLimt

boolean

None.

ExamMinScore

integer

None.

ExamTimeLimit

integer

None.

ExamWrongAnswer

integer

None.

ID

integer

None.

EnrolID

integer

None.

UserID

integer

None.

CourseID

integer

None.

Session

integer

None.

ContentID

integer

None.

Type

integer

None.

Passed

boolean

None.

LastVisit

string

None.

Score

decimal number

None.

CourseContentID

integer

None.

Status

integer

None.

LectureNumber

integer

None.

UserStatus

integer

None.

MainGroupID

integer

None.

ID

integer

None.

CourseID

integer

None.

Session

integer

None.

ContentID

integer

None.

Type

integer

None.

Priority

integer

None.

PrerequisiteID

integer

None.

IsFree

boolean

None.

Title

string

None.

IsDownloadable

boolean

None.

URL

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Status": 1,
  "LectureNumber": 2,
  "UserStatus": 3,
  "MainGroupID": 4,
  "ID": 8,
  "CourseID": 11,
  "Session": 12,
  "ContentID": 13,
  "Type": 14,
  "Priority": 10,
  "PrerequisiteID": 11,
  "IsFree": true,
  "Title": "sample string 13",
  "IsDownloadable": true,
  "URL": "sample string 15",
  "VideoDuration": 1.1,
  "ExamName": "sample string 2",
  "ExamNumberOfQuestion": 3,
  "ExamIsTimeLimt": true,
  "ExamMinScore": 5,
  "ExamTimeLimit": 6,
  "ExamWrongAnswer": 7,
  "EnrolID": 9,
  "UserID": 10,
  "Passed": true,
  "LastVisit": "sample string 16",
  "Score": 17.1,
  "CourseContentID": 18
}

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 'UserCourseContentModel'.

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-25T23:12:51.0294463+03:30"
        },
        {
          "$ref": "3"
        }
      ],
      "UserChoice": 1,
      "UserExamID": 2,
      "QuestionID": 1,
      "Question": "sample string 2",
      "Creator": 3,
      "CreateDate": "2020-11-25T23:12:51.0294463+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
}