POST api/assignment/CreateAssignmentAttach

Nếu bài tập đã nộp thì cập nhật, ngược lại thêm nộp bài tập vào bảng AssignmentSubmit

Request Information

URI Parameters

None.

Body Parameters

infom assignment Submit

AssignmentSubmitModel
NameDescriptionTypeAdditional information
ID

integer

None.

AssignmentID

integer

None.

FileAttach

string

None.

Note

string

None.

CreateDate

date

None.

CreateByUser

string

None.

UpdateDate

date

None.

NoteTeacher

string

None.

Score

decimal number

None.

FirstName

string

None.

LastName

string

None.

UserName

string

None.

CourseStudentID

integer

None.

TimeDelay

integer

None.

NameGroup

string

None.

IsGroup

integer

None.

studentID

string

None.

ChecksumParam

ChecksumParamModel

None.

GroupName

string

None.

IsAssignmentMore

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "assignmentID": 2,
  "fileAttach": "sample string 3",
  "note": "sample string 4",
  "createDate": "2024-12-12T09:12:23.6622618+07:00",
  "createByUser": "sample string 6",
  "updateDate": "2024-12-12T09:12:23.6622618+07:00",
  "noteTeacher": "sample string 7",
  "score": 1.1,
  "firstName": "sample string 8",
  "lastName": "sample string 9",
  "userName": "sample string 10",
  "courseStudentID": 1,
  "timeDelay": 1,
  "nameGroup": "sample string 11",
  "isGroup": 12,
  "studentID": "sample string 13",
  "checksumParam": {
    "checksumEdit": "sample string 1",
    "checksumDelete": "sample string 2",
    "checksumRequest": "sample string 3",
    "checksumRequest2": "sample string 4"
  },
  "groupName": "sample string 14",
  "isAssignmentMore": true
}

text/html

Sample:
{"id":1,"assignmentID":2,"fileAttach":"sample string 3","note":"sample string 4","createDate":"2024-12-12T09:12:23.6622618+07:00","createByUser":"sample string 6","updateDate":"2024-12-12T09:12:23.6622618+07:00","noteTeacher":"sample string 7","score":1.1,"firstName":"sample string 8","lastName":"sample string 9","userName":"sample string 10","courseStudentID":1,"timeDelay":1,"nameGroup":"sample string 11","isGroup":12,"studentID":"sample string 13","checksumParam":{"checksumEdit":"sample string 1","checksumDelete":"sample string 2","checksumRequest":"sample string 3","checksumRequest2":"sample string 4"},"groupName":"sample string 14","isAssignmentMore":true}

application/xml, text/xml

Sample:
<AssignmentSubmitModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/App.Model.ViewModel">
  <AssignmentID>2</AssignmentID>
  <ChecksumParam>
    <ChecksumDelete>sample string 2</ChecksumDelete>
    <ChecksumEdit>sample string 1</ChecksumEdit>
    <ChecksumRequest>sample string 3</ChecksumRequest>
    <ChecksumRequest2>sample string 4</ChecksumRequest2>
  </ChecksumParam>
  <CourseStudentID>1</CourseStudentID>
  <CreateByUser>sample string 6</CreateByUser>
  <CreateDate>2024-12-12T09:12:23.6622618+07:00</CreateDate>
  <FileAttach>sample string 3</FileAttach>
  <FirstName>sample string 8</FirstName>
  <GroupName>sample string 14</GroupName>
  <ID>1</ID>
  <IsAssignmentMore>true</IsAssignmentMore>
  <IsGroup>12</IsGroup>
  <LastName>sample string 9</LastName>
  <NameGroup>sample string 11</NameGroup>
  <Note>sample string 4</Note>
  <NoteTeacher>sample string 7</NoteTeacher>
  <Score>1.1</Score>
  <TimeDelay>1</TimeDelay>
  <UpdateDate>2024-12-12T09:12:23.6622618+07:00</UpdateDate>
  <UserName>sample string 10</UserName>
  <studentID>sample string 13</studentID>
</AssignmentSubmitModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.