POST Api/QuestionAnswer/SetQuestionAnswer
Request Information
URI Parameters
None.
Body Parameters
QuestionAnswerVO| Name | Description | Type | Additional information |
|---|---|---|---|
| StudentId | integer |
None. |
|
| ExamId | integer |
None. |
|
| QuestionId | integer |
None. |
|
| AttemptId | integer |
None. |
|
| Answers | Collection of AnswerVO |
None. |
|
| ElapsedTime | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"StudentId": 1,
"ExamId": 2,
"QuestionId": 3,
"AttemptId": 4,
"Answers": [
{
"Code": 1,
"Index": 2,
"Type": 0,
"Description": "sample string 3",
"AnswerId": 4,
"IsValid": true
},
{
"Code": 1,
"Index": 2,
"Type": 0,
"Description": "sample string 3",
"AnswerId": 4,
"IsValid": true
}
],
"ElapsedTime": 5
}
application/xml, text/xml
Sample:
<QuestionAnswerVO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SistemaDeAvaliacoes.Domain.VO">
<Answers>
<AnswerVO>
<AnswerId>4</AnswerId>
<Code>1</Code>
<Description>sample string 3</Description>
<Index>2</Index>
<IsValid>true</IsValid>
<Type>TrueOrFalse</Type>
</AnswerVO>
<AnswerVO>
<AnswerId>4</AnswerId>
<Code>1</Code>
<Description>sample string 3</Description>
<Index>2</Index>
<IsValid>true</IsValid>
<Type>TrueOrFalse</Type>
</AnswerVO>
</Answers>
<AttemptId>4</AttemptId>
<ElapsedTime>5</ElapsedTime>
<ExamId>2</ExamId>
<QuestionId>3</QuestionId>
<StudentId>1</StudentId>
</QuestionAnswerVO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
booleanResponse Formats
application/json, text/json
Sample:
true
application/xml, text/xml
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>