POST api/AnswerExam
Request Information
URI Parameters
None.
Body Parameters
StudentAnswersWithStudentExamId| Name | Description | Type | Additional information |
|---|---|---|---|
| StudentExamId | integer |
None. |
|
| StudentAnswers | Collection of StudentAnswer |
None. |
Request Formats
application/json, text/json
Sample:
{
"StudentExamId": 1,
"StudentAnswers": [
{
"Id": 1,
"StudentExamId": 1,
"ExamQuestionId": 1,
"ExamQuestionTypeId": 1,
"ExamQuestion": {
"Id": 1,
"Title": "sample string 2",
"Image": "sample string 3",
"OrderNumber": 1,
"ExamQuestionTypeId": 1,
"ExamId": 1,
"Degree": 1.1,
"FilePath": "sample string 4",
"IdealAnswerFilePath": "sample string 5",
"ExamAnswers": [
{
"Id": 1,
"ExamQuestionId": 1,
"Answer": "sample string 2",
"IsTrue": true
},
{
"Id": 1,
"ExamQuestionId": 1,
"Answer": "sample string 2",
"IsTrue": true
}
]
},
"ExamAnswerId": 1,
"ExamAnswer": {
"Id": 1,
"ExamQuestionId": 1,
"Answer": "sample string 2",
"IsTrue": true
},
"Degree": 1.1,
"AnswerText": "sample string 2",
"TeacherCorrectance": "sample string 3",
"VoicePath": "sample string 4",
"Duration": 1,
"IsTrue": true,
"CreationDate": "2025-12-11T18:56:01.328769+00:00",
"PdfAnswerPath": "sample string 5",
"Corrected": true
},
{
"Id": 1,
"StudentExamId": 1,
"ExamQuestionId": 1,
"ExamQuestionTypeId": 1,
"ExamQuestion": {
"Id": 1,
"Title": "sample string 2",
"Image": "sample string 3",
"OrderNumber": 1,
"ExamQuestionTypeId": 1,
"ExamId": 1,
"Degree": 1.1,
"FilePath": "sample string 4",
"IdealAnswerFilePath": "sample string 5",
"ExamAnswers": [
{
"Id": 1,
"ExamQuestionId": 1,
"Answer": "sample string 2",
"IsTrue": true
},
{
"Id": 1,
"ExamQuestionId": 1,
"Answer": "sample string 2",
"IsTrue": true
}
]
},
"ExamAnswerId": 1,
"ExamAnswer": {
"Id": 1,
"ExamQuestionId": 1,
"Answer": "sample string 2",
"IsTrue": true
},
"Degree": 1.1,
"AnswerText": "sample string 2",
"TeacherCorrectance": "sample string 3",
"VoicePath": "sample string 4",
"Duration": 1,
"IsTrue": true,
"CreationDate": "2025-12-11T18:56:01.328769+00:00",
"PdfAnswerPath": "sample string 5",
"Corrected": true
}
]
}
application/xml, text/xml
Sample:
<StudentAnswersWithStudentExamId xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DataAccess.Entities.Views">
<StudentAnswers xmlns:d2p1="http://schemas.datacontract.org/2004/07/DataAccess.Entities">
<d2p1:StudentAnswer>
<d2p1:AnswerText>sample string 2</d2p1:AnswerText>
<d2p1:Corrected>true</d2p1:Corrected>
<d2p1:CreationDate>2025-12-11T18:56:01.328769+00:00</d2p1:CreationDate>
<d2p1:Degree>1.1</d2p1:Degree>
<d2p1:Duration>1</d2p1:Duration>
<d2p1:ExamAnswer>
<d2p1:Answer>sample string 2</d2p1:Answer>
<d2p1:ExamQuestionId>1</d2p1:ExamQuestionId>
<d2p1:Id>1</d2p1:Id>
<d2p1:IsTrue>true</d2p1:IsTrue>
</d2p1:ExamAnswer>
<d2p1:ExamAnswerId>1</d2p1:ExamAnswerId>
<d2p1:ExamQuestion>
<d2p1:Degree>1.1</d2p1:Degree>
<d2p1:ExamAnswers>
<d2p1:ExamAnswer>
<d2p1:Answer>sample string 2</d2p1:Answer>
<d2p1:ExamQuestionId>1</d2p1:ExamQuestionId>
<d2p1:Id>1</d2p1:Id>
<d2p1:IsTrue>true</d2p1:IsTrue>
</d2p1:ExamAnswer>
<d2p1:ExamAnswer>
<d2p1:Answer>sample string 2</d2p1:Answer>
<d2p1:ExamQuestionId>1</d2p1:ExamQuestionId>
<d2p1:Id>1</d2p1:Id>
<d2p1:IsTrue>true</d2p1:IsTrue>
</d2p1:ExamAnswer>
</d2p1:ExamAnswers>
<d2p1:ExamId>1</d2p1:ExamId>
<d2p1:ExamQuestionTypeId>1</d2p1:ExamQuestionTypeId>
<d2p1:FilePath>sample string 4</d2p1:FilePath>
<d2p1:Id>1</d2p1:Id>
<d2p1:IdealAnswerFilePath>sample string 5</d2p1:IdealAnswerFilePath>
<d2p1:Image>sample string 3</d2p1:Image>
<d2p1:OrderNumber>1</d2p1:OrderNumber>
<d2p1:Title>sample string 2</d2p1:Title>
</d2p1:ExamQuestion>
<d2p1:ExamQuestionId>1</d2p1:ExamQuestionId>
<d2p1:ExamQuestionTypeId>1</d2p1:ExamQuestionTypeId>
<d2p1:Id>1</d2p1:Id>
<d2p1:IsTrue>true</d2p1:IsTrue>
<d2p1:PdfAnswerPath>sample string 5</d2p1:PdfAnswerPath>
<d2p1:StudentExamId>1</d2p1:StudentExamId>
<d2p1:TeacherCorrectance>sample string 3</d2p1:TeacherCorrectance>
<d2p1:VoicePath>sample string 4</d2p1:VoicePath>
</d2p1:StudentAnswer>
<d2p1:StudentAnswer>
<d2p1:AnswerText>sample string 2</d2p1:AnswerText>
<d2p1:Corrected>true</d2p1:Corrected>
<d2p1:CreationDate>2025-12-11T18:56:01.328769+00:00</d2p1:CreationDate>
<d2p1:Degree>1.1</d2p1:Degree>
<d2p1:Duration>1</d2p1:Duration>
<d2p1:ExamAnswer>
<d2p1:Answer>sample string 2</d2p1:Answer>
<d2p1:ExamQuestionId>1</d2p1:ExamQuestionId>
<d2p1:Id>1</d2p1:Id>
<d2p1:IsTrue>true</d2p1:IsTrue>
</d2p1:ExamAnswer>
<d2p1:ExamAnswerId>1</d2p1:ExamAnswerId>
<d2p1:ExamQuestion>
<d2p1:Degree>1.1</d2p1:Degree>
<d2p1:ExamAnswers>
<d2p1:ExamAnswer>
<d2p1:Answer>sample string 2</d2p1:Answer>
<d2p1:ExamQuestionId>1</d2p1:ExamQuestionId>
<d2p1:Id>1</d2p1:Id>
<d2p1:IsTrue>true</d2p1:IsTrue>
</d2p1:ExamAnswer>
<d2p1:ExamAnswer>
<d2p1:Answer>sample string 2</d2p1:Answer>
<d2p1:ExamQuestionId>1</d2p1:ExamQuestionId>
<d2p1:Id>1</d2p1:Id>
<d2p1:IsTrue>true</d2p1:IsTrue>
</d2p1:ExamAnswer>
</d2p1:ExamAnswers>
<d2p1:ExamId>1</d2p1:ExamId>
<d2p1:ExamQuestionTypeId>1</d2p1:ExamQuestionTypeId>
<d2p1:FilePath>sample string 4</d2p1:FilePath>
<d2p1:Id>1</d2p1:Id>
<d2p1:IdealAnswerFilePath>sample string 5</d2p1:IdealAnswerFilePath>
<d2p1:Image>sample string 3</d2p1:Image>
<d2p1:OrderNumber>1</d2p1:OrderNumber>
<d2p1:Title>sample string 2</d2p1:Title>
</d2p1:ExamQuestion>
<d2p1:ExamQuestionId>1</d2p1:ExamQuestionId>
<d2p1:ExamQuestionTypeId>1</d2p1:ExamQuestionTypeId>
<d2p1:Id>1</d2p1:Id>
<d2p1:IsTrue>true</d2p1:IsTrue>
<d2p1:PdfAnswerPath>sample string 5</d2p1:PdfAnswerPath>
<d2p1:StudentExamId>1</d2p1:StudentExamId>
<d2p1:TeacherCorrectance>sample string 3</d2p1:TeacherCorrectance>
<d2p1:VoicePath>sample string 4</d2p1:VoicePath>
</d2p1:StudentAnswer>
</StudentAnswers>
<StudentExamId>1</StudentExamId>
</StudentAnswersWithStudentExamId>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |