POST api/posttest

Request Information

URI Parameters

None.

Body Parameters

PosttestDto
NameDescriptionTypeAdditional information
CourseID

integer

None.

SetID

integer

None.

QuestionID

integer

None.

QuestionText

string

None.

Answers

Collection of QuestionAnswer

None.

Request Formats

application/json, text/json

Sample:
{
  "CourseID": 1,
  "SetID": 2,
  "QuestionID": 3,
  "QuestionText": "sample string 4",
  "Answers": [
    {
      "AnswerText": "sample string 1",
      "AnswerResult": "sample string 2"
    },
    {
      "AnswerText": "sample string 1",
      "AnswerResult": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<PosttestDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MODEL.HRDIElearning.Model">
  <Answers xmlns="http://schemas.datacontract.org/2004/07/MODEL.HRDIElearning.Abstract">
    <QuestionAnswer>
      <AnswerResult>sample string 2</AnswerResult>
      <AnswerText>sample string 1</AnswerText>
    </QuestionAnswer>
    <QuestionAnswer>
      <AnswerResult>sample string 2</AnswerResult>
      <AnswerText>sample string 1</AnswerText>
    </QuestionAnswer>
  </Answers>
  <CourseID xmlns="http://schemas.datacontract.org/2004/07/MODEL.HRDIElearning.Abstract">1</CourseID>
  <QuestionID xmlns="http://schemas.datacontract.org/2004/07/MODEL.HRDIElearning.Abstract">3</QuestionID>
  <QuestionText xmlns="http://schemas.datacontract.org/2004/07/MODEL.HRDIElearning.Abstract">sample string 4</QuestionText>
  <SetID xmlns="http://schemas.datacontract.org/2004/07/MODEL.HRDIElearning.Abstract">2</SetID>
</PosttestDto>

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.