POST api/homework/submit
Request Information
URI Parameters
None.
Body Parameters
SubmitHomeworkRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| HomeworkId | integer |
None. |
|
| StudentId | integer |
None. |
|
| ClassId | integer |
None. |
|
| SectionId | integer |
None. |
|
| WorkFilePath | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"HomeworkId": 1,
"StudentId": 2,
"ClassId": 3,
"SectionId": 4,
"WorkFilePath": "sample string 5"
}
application/xml, text/xml
Sample:
<SubmitHomeworkRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SchoolAPI.Models"> <ClassId>3</ClassId> <HomeworkId>1</HomeworkId> <SectionId>4</SectionId> <StudentId>2</StudentId> <WorkFilePath>sample string 5</WorkFilePath> </SubmitHomeworkRequest>
application/x-www-form-urlencoded
Sample:
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. |