POST api/Homework/Save

Request Information

URI Parameters

None.

Body Parameters

Systemic.Model.mlHomeWork+Assignment
NamedescriptionTypeAdditional information
AssignmentSysID

integer

None.

ClassSysID

integer

None.

SectionSysID

integer

None.

Date

string

None.

IsApproved

boolean

None.

ApprovedBy

string

None.

ApprovedDate

string

None.

BranchSysID

integer

None.

WorkList

Collection of Systemic.Model.mlHomeWork+AssignmentDetail

None.

Request Formats

application/json, text/json, text/html

Sample:
{
  "WorkList": [
    {
      "AssignmentDetailSysID": 1,
      "AssignmentSysID": 2,
      "SubjectSysID": 3,
      "Work": "sample string 4",
      "ReferenceURL": "sample string 5"
    },
    {
      "AssignmentDetailSysID": 1,
      "AssignmentSysID": 2,
      "SubjectSysID": 3,
      "Work": "sample string 4",
      "ReferenceURL": "sample string 5"
    }
  ],
  "AssignmentSysID": 1,
  "ClassSysID": 2,
  "SectionSysID": 3,
  "Date": "sample string 4",
  "IsApproved": true,
  "ApprovedBy": "sample string 6",
  "ApprovedDate": "sample string 7",
  "BranchSysID": 8
}

text/xml

Sample:
<mlHomeWork.Assignment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Systemic.Model">
  <ApprovedBy>sample string 6</ApprovedBy>
  <ApprovedDate>sample string 7</ApprovedDate>
  <AssignmentSysID>1</AssignmentSysID>
  <BranchSysID>8</BranchSysID>
  <ClassSysID>2</ClassSysID>
  <Date>sample string 4</Date>
  <IsApproved>true</IsApproved>
  <SectionSysID>3</SectionSysID>
  <WorkList>
    <mlHomeWork.AssignmentDetail>
      <AssignmentDetailSysID>1</AssignmentDetailSysID>
      <AssignmentSysID>2</AssignmentSysID>
      <ReferenceURL>sample string 5</ReferenceURL>
      <SubjectSysID>3</SubjectSysID>
      <Work>sample string 4</Work>
    </mlHomeWork.AssignmentDetail>
    <mlHomeWork.AssignmentDetail>
      <AssignmentDetailSysID>1</AssignmentDetailSysID>
      <AssignmentSysID>2</AssignmentSysID>
      <ReferenceURL>sample string 5</ReferenceURL>
      <SubjectSysID>3</SubjectSysID>
      <Work>sample string 4</Work>
    </mlHomeWork.AssignmentDetail>
  </WorkList>
</mlHomeWork.Assignment>

response Information

Resource description

Api.Server.ServerResponse
NamedescriptionTypeAdditional information
response

string

None.

success

Api.Server.MlSuccess

None.

failure

Api.Server.MlError

None.

response Formats

application/json, text/json, text/html

Sample:
{
  "response": "sample string 1",
  "success": null,
  "failure": null
}

text/xml

Sample:
<ServerResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api.Server">
  <failure i:nil="true" />
  <response>sample string 1</response>
  <success i:nil="true" />
</ServerResponse>