POST api/studentAnswers

Create a new student answer

Request Information

URI Parameters

None.

Body Parameters

StudentAnswerEntity
NameDescriptionTypeAdditional information
id

integer

None.

studentTestId

integer

None.

questionId

integer

None.

answerId

integer

None.

isCorrect

boolean

None.

PointsPossible

decimal number

None.

PointsEarned

decimal number

None.

PercentCorrect

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "studentTestId": 2,
  "questionId": 1,
  "answerId": 1,
  "isCorrect": true,
  "pointsPossible": 4.0,
  "pointsEarned": 5.0,
  "percentCorrect": 6.0
}

application/xml, text/xml

Sample:
<StudentAnswerEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OHS.TLMClassroomResponder.BusinessEntity">
  <PercentCorrect>6</PercentCorrect>
  <PointsEarned>5</PointsEarned>
  <PointsPossible>4</PointsPossible>
  <answerId>1</answerId>
  <id>1</id>
  <isCorrect>true</isCorrect>
  <questionId>1</questionId>
  <studentTestId>2</studentTestId>
</StudentAnswerEntity>

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.