POST api/resourcedocument/Add

Request Information

URI Parameters

None.

Body Parameters

ResourceDocumentModel
NameDescriptionTypeAdditional information
ID

integer

None.

Name

string

None.

Description

string

None.

NameDownload

string

None.

FileAttach

string

None.

TeacherID

string

None.

Stop

boolean

None.

CreatedByUser

string

None.

CreateDate

date

None.

UpdateByUser

string

None.

UpdateDate

date

None.

Status

integer

None.

IsCommon

boolean

None.

ChecksumParam

ChecksumParamModel

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "name": "sample string 2",
  "description": "sample string 3",
  "nameDownload": "sample string 4",
  "fileAttach": "sample string 5",
  "teacherID": "sample string 6",
  "stop": true,
  "createdByUser": "sample string 8",
  "createDate": "2024-12-26T18:23:37.6103753+07:00",
  "updateByUser": "sample string 9",
  "updateDate": "2024-12-26T18:23:37.6103753+07:00",
  "status": 1,
  "isCommon": true,
  "checksumParam": {
    "checksumEdit": "sample string 1",
    "checksumDelete": "sample string 2",
    "checksumRequest": "sample string 3",
    "checksumRequest2": "sample string 4"
  }
}

text/html

Sample:
{"id":1,"name":"sample string 2","description":"sample string 3","nameDownload":"sample string 4","fileAttach":"sample string 5","teacherID":"sample string 6","stop":true,"createdByUser":"sample string 8","createDate":"2024-12-26T18:23:37.6103753+07:00","updateByUser":"sample string 9","updateDate":"2024-12-26T18:23:37.6103753+07:00","status":1,"isCommon":true,"checksumParam":{"checksumEdit":"sample string 1","checksumDelete":"sample string 2","checksumRequest":"sample string 3","checksumRequest2":"sample string 4"}}

application/xml, text/xml

Sample:
<ResourceDocumentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/App.Model.ViewModel">
  <ChecksumParam>
    <ChecksumDelete>sample string 2</ChecksumDelete>
    <ChecksumEdit>sample string 1</ChecksumEdit>
    <ChecksumRequest>sample string 3</ChecksumRequest>
    <ChecksumRequest2>sample string 4</ChecksumRequest2>
  </ChecksumParam>
  <CreateDate>2024-12-26T18:23:37.6103753+07:00</CreateDate>
  <CreatedByUser>sample string 8</CreatedByUser>
  <Description>sample string 3</Description>
  <FileAttach>sample string 5</FileAttach>
  <ID>1</ID>
  <IsCommon>true</IsCommon>
  <Name>sample string 2</Name>
  <NameDownload>sample string 4</NameDownload>
  <Status>1</Status>
  <Stop>true</Stop>
  <TeacherID>sample string 6</TeacherID>
  <UpdateByUser>sample string 9</UpdateByUser>
  <UpdateDate>2024-12-26T18:23:37.6103753+07:00</UpdateDate>
</ResourceDocumentModel>

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.