POST api/Teacher/CalScore?ClassId={ClassId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| ClassId | integer |
Required |
Body Parameters
Collection of StudentResultExamModel| Name | Description | Type | Additional information |
|---|---|---|---|
| StudentId | integer |
None. |
|
| ClassId | integer |
None. |
|
| ExamId | integer |
None. |
|
| StudentName | string |
None. |
|
| NickName | string |
None. |
|
| TeacherComment | string |
None. |
|
| AvgScore | decimal number |
None. |
|
| TotalExchangeScore | decimal number |
None. |
|
| Avatar | string |
None. |
|
| LearningCapacityName | string |
None. |
|
| LearningCapacityId | integer |
None. |
|
| IsNotJoinExam | boolean |
None. |
|
| ListSubject | Collection of ListSubject |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"StudentId": 1,
"ClassId": 1,
"ExamId": 1,
"StudentName": "sample string 2",
"NickName": "sample string 3",
"TeacherComment": "sample string 4",
"AvgScore": 1.1,
"TotalExchangeScore": 1.1,
"Avatar": "sample string 5",
"LearningCapacityName": "sample string 6",
"LearningCapacityId": 1,
"IsNotJoinExam": true,
"ListSubject": [
{
"SubjectId": 1,
"ClassSubjectId": 2,
"SubjectName": "sample string 3",
"Score": 1.1,
"Rate": 1.1,
"IsGreaterMaxScore": true,
"MaxScore": 1.1,
"LevelPTId": 1,
"IsDisable": true
},
{
"SubjectId": 1,
"ClassSubjectId": 2,
"SubjectName": "sample string 3",
"Score": 1.1,
"Rate": 1.1,
"IsGreaterMaxScore": true,
"MaxScore": 1.1,
"LevelPTId": 1,
"IsDisable": true
}
]
},
{
"StudentId": 1,
"ClassId": 1,
"ExamId": 1,
"StudentName": "sample string 2",
"NickName": "sample string 3",
"TeacherComment": "sample string 4",
"AvgScore": 1.1,
"TotalExchangeScore": 1.1,
"Avatar": "sample string 5",
"LearningCapacityName": "sample string 6",
"LearningCapacityId": 1,
"IsNotJoinExam": true,
"ListSubject": [
{
"SubjectId": 1,
"ClassSubjectId": 2,
"SubjectName": "sample string 3",
"Score": 1.1,
"Rate": 1.1,
"IsGreaterMaxScore": true,
"MaxScore": 1.1,
"LevelPTId": 1,
"IsDisable": true
},
{
"SubjectId": 1,
"ClassSubjectId": 2,
"SubjectName": "sample string 3",
"Score": 1.1,
"Rate": 1.1,
"IsGreaterMaxScore": true,
"MaxScore": 1.1,
"LevelPTId": 1,
"IsDisable": true
}
]
}
]
application/xml, text/xml
Sample:
<ArrayOfStudentResultExamModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EBM.Portal.Bus.Model">
<StudentResultExamModel>
<Avatar>sample string 5</Avatar>
<AvgScore>1.1</AvgScore>
<ClassId>1</ClassId>
<ExamId>1</ExamId>
<IsNotJoinExam>true</IsNotJoinExam>
<LearningCapacityId>1</LearningCapacityId>
<LearningCapacityName>sample string 6</LearningCapacityName>
<ListSubject>
<ListSubject>
<ClassSubjectId>2</ClassSubjectId>
<IsDisable>true</IsDisable>
<IsGreaterMaxScore>true</IsGreaterMaxScore>
<LevelPTId>1</LevelPTId>
<MaxScore>1.1</MaxScore>
<Rate>1.1</Rate>
<Score>1.1</Score>
<SubjectId>1</SubjectId>
<SubjectName>sample string 3</SubjectName>
</ListSubject>
<ListSubject>
<ClassSubjectId>2</ClassSubjectId>
<IsDisable>true</IsDisable>
<IsGreaterMaxScore>true</IsGreaterMaxScore>
<LevelPTId>1</LevelPTId>
<MaxScore>1.1</MaxScore>
<Rate>1.1</Rate>
<Score>1.1</Score>
<SubjectId>1</SubjectId>
<SubjectName>sample string 3</SubjectName>
</ListSubject>
</ListSubject>
<NickName>sample string 3</NickName>
<StudentId>1</StudentId>
<StudentName>sample string 2</StudentName>
<TeacherComment>sample string 4</TeacherComment>
<TotalExchangeScore>1.1</TotalExchangeScore>
</StudentResultExamModel>
<StudentResultExamModel>
<Avatar>sample string 5</Avatar>
<AvgScore>1.1</AvgScore>
<ClassId>1</ClassId>
<ExamId>1</ExamId>
<IsNotJoinExam>true</IsNotJoinExam>
<LearningCapacityId>1</LearningCapacityId>
<LearningCapacityName>sample string 6</LearningCapacityName>
<ListSubject>
<ListSubject>
<ClassSubjectId>2</ClassSubjectId>
<IsDisable>true</IsDisable>
<IsGreaterMaxScore>true</IsGreaterMaxScore>
<LevelPTId>1</LevelPTId>
<MaxScore>1.1</MaxScore>
<Rate>1.1</Rate>
<Score>1.1</Score>
<SubjectId>1</SubjectId>
<SubjectName>sample string 3</SubjectName>
</ListSubject>
<ListSubject>
<ClassSubjectId>2</ClassSubjectId>
<IsDisable>true</IsDisable>
<IsGreaterMaxScore>true</IsGreaterMaxScore>
<LevelPTId>1</LevelPTId>
<MaxScore>1.1</MaxScore>
<Rate>1.1</Rate>
<Score>1.1</Score>
<SubjectId>1</SubjectId>
<SubjectName>sample string 3</SubjectName>
</ListSubject>
</ListSubject>
<NickName>sample string 3</NickName>
<StudentId>1</StudentId>
<StudentName>sample string 2</StudentName>
<TeacherComment>sample string 4</TeacherComment>
<TotalExchangeScore>1.1</TotalExchangeScore>
</StudentResultExamModel>
</ArrayOfStudentResultExamModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ObjectNone.
Response Formats
application/json, text/json
Sample:
{}
application/xml, text/xml
Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />