GET api/ECHomeworkByClass?teacherId={teacherId}
Retrieves list of homework based on the teacher id.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
teacherId |
Filter and return list of homework filter by Teacher ID. |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
A list of Homework filter by Teacher ID.
Collection of ECHomeworkName | Description | Type | Additional information |
---|---|---|---|
HomeworkId |
Gets or sets the homework ID. |
integer |
None. |
HomeworkName |
Gets or sets the homework name. |
string |
None. |
SubjectName |
Gets or sets the subject name. |
string |
None. |
Category |
Gets or sets the category of the homework. |
string |
None. |
DueDate |
Gets or sets the due date of the homework. |
string |
None. |
TeacherId |
Gets or sets the student ID associated with the homework. |
integer |
None. |
Response Formats
application/json, text/json
Sample:
[ { "HomeworkId": 1, "HomeworkName": "sample string 2", "SubjectName": "sample string 3", "Category": "sample string 4", "DueDate": "sample string 5", "TeacherId": 6 }, { "HomeworkId": 1, "HomeworkName": "sample string 2", "SubjectName": "sample string 3", "Category": "sample string 4", "DueDate": "sample string 5", "TeacherId": 6 } ]
application/xml, text/xml
Sample:
<ArrayOfECHomework xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OTJServices.Models"> <ECHomework> <Category>sample string 4</Category> <DueDate>sample string 5</DueDate> <HomeworkId>1</HomeworkId> <HomeworkName>sample string 2</HomeworkName> <SubjectName>sample string 3</SubjectName> <TeacherId>6</TeacherId> </ECHomework> <ECHomework> <Category>sample string 4</Category> <DueDate>sample string 5</DueDate> <HomeworkId>1</HomeworkId> <HomeworkName>sample string 2</HomeworkName> <SubjectName>sample string 3</SubjectName> <TeacherId>6</TeacherId> </ECHomework> </ArrayOfECHomework>