POST api/Exam/AddQuestion

Request Information

URI Parameters

None.

Body Parameters

AddQuestionsExamDTO
NameDescriptionTypeAdditional information
examName

string

None.

timer

integer

None.

examId

integer

None.

createdByUserId

integer

None.

questions

Collection of AddQuestionDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "examName": "sample string 1",
  "timer": 1,
  "examId": 2,
  "createdByUserId": 3,
  "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

boolean

Response Formats

application/json, text/json

Sample:
true