POST api/TestTopic/Create
Request Information
URI Parameters
None.
Body Parameters
TestTopicModelName | Description | Type | Additional information |
---|---|---|---|
ID | integer |
None. |
|
CourseID | integer |
None. |
|
Title | string |
None. |
|
Description | string |
None. |
|
NumberQuestion | integer |
None. |
|
FileAttach | string |
None. |
|
Time | integer |
None. |
|
Stop | boolean |
None. |
|
CreateDate | date |
None. |
|
CreateByUser | string |
None. |
|
UpdateDate | date |
None. |
|
UpdateByUser | string |
None. |
|
BeginDate | date |
None. |
|
EndDate | date |
None. |
|
ListQuestion | Collection of QuestionModel |
None. |
|
ChecksumParam | ChecksumParamModel |
None. |
|
CourseSubjectID | integer |
None. |
|
IsShow | boolean |
None. |
|
IsShowResult | boolean |
None. |
|
IsShowRight | boolean |
None. |
|
IsDeadline | boolean |
None. |
|
IsNormal | boolean |
None. |
|
SubjectCode | string |
None. |
|
Year | string |
None. |
|
Semester | integer |
None. |
|
YearSemester | string |
None. |
|
dsCourse | Collection of integer |
None. |
|
dsCourseCode | string |
None. |
|
IdTestDone | integer |
None. |
|
FLagDaLam | boolean |
None. |
|
NgayBatDau | date |
None. |
|
NgayKetThuc | date |
None. |
|
PhutConLai | integer |
None. |
|
GiayConLai | integer |
None. |
|
TenSinhVien | string |
None. |
|
MaSinhVien | string |
None. |
|
Lop | string |
None. |
|
TongDiem | string |
None. |
|
HanBatDauKT | date |
None. |
|
HanKetThucKT | date |
None. |
|
HaveFile | boolean |
None. |
|
HienKetQua | boolean |
None. |
|
FileDinhKem | string |
None. |
|
NgayHienDiem | date |
None. |
|
HienDapAn | boolean |
None. |
|
NgayHienDapAn | date |
None. |
|
readOnly | boolean |
None. |
|
FileHinhAnh | string |
None. |
|
DatetimeNow | date |
None. |
Request Formats
application/json, text/json
Sample:
{ "id": 1, "courseID": 1, "title": "sample string 2", "description": "sample string 3", "numberQuestion": 4, "fileAttach": "sample string 5", "time": 1, "stop": true, "createDate": "2024-12-26T18:08:13.1110249+07:00", "createByUser": "sample string 7", "updateDate": "2024-12-26T18:08:13.1110249+07:00", "updateByUser": "sample string 8", "beginDate": "2024-12-26T18:08:13.1110249+07:00", "endDate": "2024-12-26T18:08:13.1110249+07:00", "listQuestion": [ { "id": 1, "question": "sample string 2", "image": "sample string 3", "stop": true, "createDate": "2024-12-26T18:08:13.1110249+07:00", "createByUser": "sample string 6", "updateByUser": "sample string 7", "updateDate": "2024-12-26T18:08:13.1110249+07:00", "questionAnswer": [ { "id": 1, "questionID": 2, "answer": "sample string 3", "isRight": true, "createDate": "2024-12-26T18:08:13.1110249+07:00", "textRight": "sample string 6", "checked": true, "idTestDetail": 8, "image": "sample string 9" }, { "id": 1, "questionID": 2, "answer": "sample string 3", "isRight": true, "createDate": "2024-12-26T18:08:13.1110249+07:00", "textRight": "sample string 6", "checked": true, "idTestDetail": 8, "image": "sample string 9" } ], "questionAnswerRight": { "id": 1, "questionID": 2, "answer": "sample string 3", "isRight": true, "createDate": "2024-12-26T18:08:13.1110249+07:00", "textRight": "sample string 6", "checked": true, "idTestDetail": 8, "image": "sample string 9" }, "rightAnwer": "sample string 8", "checksumParam": { "checksumEdit": "sample string 1", "checksumDelete": "sample string 2", "checksumRequest": "sample string 3", "checksumRequest2": "sample string 4" } }, { "id": 1, "question": "sample string 2", "image": "sample string 3", "stop": true, "createDate": "2024-12-26T18:08:13.1110249+07:00", "createByUser": "sample string 6", "updateByUser": "sample string 7", "updateDate": "2024-12-26T18:08:13.1110249+07:00", "questionAnswer": [ { "id": 1, "questionID": 2, "answer": "sample string 3", "isRight": true, "createDate": "2024-12-26T18:08:13.1110249+07:00", "textRight": "sample string 6", "checked": true, "idTestDetail": 8, "image": "sample string 9" }, { "id": 1, "questionID": 2, "answer": "sample string 3", "isRight": true, "createDate": "2024-12-26T18:08:13.1110249+07:00", "textRight": "sample string 6", "checked": true, "idTestDetail": 8, "image": "sample string 9" } ], "questionAnswerRight": { "id": 1, "questionID": 2, "answer": "sample string 3", "isRight": true, "createDate": "2024-12-26T18:08:13.1110249+07:00", "textRight": "sample string 6", "checked": true, "idTestDetail": 8, "image": "sample string 9" }, "rightAnwer": "sample string 8", "checksumParam": { "checksumEdit": "sample string 1", "checksumDelete": "sample string 2", "checksumRequest": "sample string 3", "checksumRequest2": "sample string 4" } } ], "checksumParam": { "checksumEdit": "sample string 1", "checksumDelete": "sample string 2", "checksumRequest": "sample string 3", "checksumRequest2": "sample string 4" }, "courseSubjectID": 1, "isShow": true, "isShowResult": true, "isShowRight": true, "isDeadline": true, "isNormal": true, "subjectCode": "sample string 14", "year": "sample string 15", "semester": 16, "yearSemester": "sample string 17", "dsCourse": [ 1, 2 ], "dsCourseCode": "sample string 18", "idTestDone": 19, "fLagDaLam": true, "ngayBatDau": "2024-12-26T18:08:13.1110249+07:00", "ngayKetThuc": "2024-12-26T18:08:13.1110249+07:00", "phutConLai": 21, "giayConLai": 22, "tenSinhVien": "sample string 23", "maSinhVien": "sample string 24", "lop": "sample string 25", "tongDiem": "sample string 26", "hanBatDauKT": "2024-12-26T18:08:13.1110249+07:00", "hanKetThucKT": "2024-12-26T18:08:13.1110249+07:00", "haveFile": true, "hienKetQua": true, "fileDinhKem": "sample string 31", "ngayHienDiem": "2024-12-26T18:08:13.1110249+07:00", "hienDapAn": true, "ngayHienDapAn": "2024-12-26T18:08:13.1110249+07:00", "readOnly": true, "fileHinhAnh": "sample string 35", "datetimeNow": "2024-12-26T18:08:13.1110249+07:00" }
text/html
Sample:
{"id":1,"courseID":1,"title":"sample string 2","description":"sample string 3","numberQuestion":4,"fileAttach":"sample string 5","time":1,"stop":true,"createDate":"2024-12-26T18:08:13.1110249+07:00","createByUser":"sample string 7","updateDate":"2024-12-26T18:08:13.1110249+07:00","updateByUser":"sample string 8","beginDate":"2024-12-26T18:08:13.1110249+07:00","endDate":"2024-12-26T18:08:13.1110249+07:00","listQuestion":[{"id":1,"question":"sample string 2","image":"sample string 3","stop":true,"createDate":"2024-12-26T18:08:13.1110249+07:00","createByUser":"sample string 6","updateByUser":"sample string 7","updateDate":"2024-12-26T18:08:13.1110249+07:00","questionAnswer":[{"id":1,"questionID":2,"answer":"sample string 3","isRight":true,"createDate":"2024-12-26T18:08:13.1110249+07:00","textRight":"sample string 6","checked":true,"idTestDetail":8,"image":"sample string 9"},{"id":1,"questionID":2,"answer":"sample string 3","isRight":true,"createDate":"2024-12-26T18:08:13.1110249+07:00","textRight":"sample string 6","checked":true,"idTestDetail":8,"image":"sample string 9"}],"questionAnswerRight":{"id":1,"questionID":2,"answer":"sample string 3","isRight":true,"createDate":"2024-12-26T18:08:13.1110249+07:00","textRight":"sample string 6","checked":true,"idTestDetail":8,"image":"sample string 9"},"rightAnwer":"sample string 8","checksumParam":{"checksumEdit":"sample string 1","checksumDelete":"sample string 2","checksumRequest":"sample string 3","checksumRequest2":"sample string 4"}},{"id":1,"question":"sample string 2","image":"sample string 3","stop":true,"createDate":"2024-12-26T18:08:13.1110249+07:00","createByUser":"sample string 6","updateByUser":"sample string 7","updateDate":"2024-12-26T18:08:13.1110249+07:00","questionAnswer":[{"id":1,"questionID":2,"answer":"sample string 3","isRight":true,"createDate":"2024-12-26T18:08:13.1110249+07:00","textRight":"sample string 6","checked":true,"idTestDetail":8,"image":"sample string 9"},{"id":1,"questionID":2,"answer":"sample string 3","isRight":true,"createDate":"2024-12-26T18:08:13.1110249+07:00","textRight":"sample string 6","checked":true,"idTestDetail":8,"image":"sample string 9"}],"questionAnswerRight":{"id":1,"questionID":2,"answer":"sample string 3","isRight":true,"createDate":"2024-12-26T18:08:13.1110249+07:00","textRight":"sample string 6","checked":true,"idTestDetail":8,"image":"sample string 9"},"rightAnwer":"sample string 8","checksumParam":{"checksumEdit":"sample string 1","checksumDelete":"sample string 2","checksumRequest":"sample string 3","checksumRequest2":"sample string 4"}}],"checksumParam":{"checksumEdit":"sample string 1","checksumDelete":"sample string 2","checksumRequest":"sample string 3","checksumRequest2":"sample string 4"},"courseSubjectID":1,"isShow":true,"isShowResult":true,"isShowRight":true,"isDeadline":true,"isNormal":true,"subjectCode":"sample string 14","year":"sample string 15","semester":16,"yearSemester":"sample string 17","dsCourse":[1,2],"dsCourseCode":"sample string 18","idTestDone":19,"fLagDaLam":true,"ngayBatDau":"2024-12-26T18:08:13.1110249+07:00","ngayKetThuc":"2024-12-26T18:08:13.1110249+07:00","phutConLai":21,"giayConLai":22,"tenSinhVien":"sample string 23","maSinhVien":"sample string 24","lop":"sample string 25","tongDiem":"sample string 26","hanBatDauKT":"2024-12-26T18:08:13.1110249+07:00","hanKetThucKT":"2024-12-26T18:08:13.1110249+07:00","haveFile":true,"hienKetQua":true,"fileDinhKem":"sample string 31","ngayHienDiem":"2024-12-26T18:08:13.1110249+07:00","hienDapAn":true,"ngayHienDapAn":"2024-12-26T18:08:13.1110249+07:00","readOnly":true,"fileHinhAnh":"sample string 35","datetimeNow":"2024-12-26T18:08:13.1110249+07:00"}
application/xml, text/xml
Sample:
<TestTopicModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/App.Model.ViewModel"> <BeginDate>2024-12-26T18:08:13.1110249+07:00</BeginDate> <ChecksumParam> <ChecksumDelete>sample string 2</ChecksumDelete> <ChecksumEdit>sample string 1</ChecksumEdit> <ChecksumRequest>sample string 3</ChecksumRequest> <ChecksumRequest2>sample string 4</ChecksumRequest2> </ChecksumParam> <CourseID>1</CourseID> <CourseSubjectID>1</CourseSubjectID> <CreateByUser>sample string 7</CreateByUser> <CreateDate>2024-12-26T18:08:13.1110249+07:00</CreateDate> <DatetimeNow>2024-12-26T18:08:13.1110249+07:00</DatetimeNow> <Description>sample string 3</Description> <EndDate>2024-12-26T18:08:13.1110249+07:00</EndDate> <FLagDaLam>true</FLagDaLam> <FileAttach>sample string 5</FileAttach> <FileDinhKem>sample string 31</FileDinhKem> <FileHinhAnh>sample string 35</FileHinhAnh> <GiayConLai>22</GiayConLai> <HanBatDauKT>2024-12-26T18:08:13.1110249+07:00</HanBatDauKT> <HanKetThucKT>2024-12-26T18:08:13.1110249+07:00</HanKetThucKT> <HaveFile>true</HaveFile> <HienDapAn>true</HienDapAn> <HienKetQua>true</HienKetQua> <ID>1</ID> <IdTestDone>19</IdTestDone> <IsDeadline>true</IsDeadline> <IsNormal>true</IsNormal> <IsShow>true</IsShow> <IsShowResult>true</IsShowResult> <IsShowRight>true</IsShowRight> <ListQuestion> <QuestionModel> <ChecksumParam> <ChecksumDelete>sample string 2</ChecksumDelete> <ChecksumEdit>sample string 1</ChecksumEdit> <ChecksumRequest>sample string 3</ChecksumRequest> <ChecksumRequest2>sample string 4</ChecksumRequest2> </ChecksumParam> <CreateByUser>sample string 6</CreateByUser> <CreateDate>2024-12-26T18:08:13.1110249+07:00</CreateDate> <ID>1</ID> <Image>sample string 3</Image> <Question>sample string 2</Question> <QuestionAnswer> <QuestionAnswersModel> <Answer>sample string 3</Answer> <Checked>true</Checked> <CreateDate>2024-12-26T18:08:13.1110249+07:00</CreateDate> <ID>1</ID> <IdTestDetail>8</IdTestDetail> <Image>sample string 9</Image> <IsRight>true</IsRight> <QuestionID>2</QuestionID> <TextRight>sample string 6</TextRight> </QuestionAnswersModel> <QuestionAnswersModel> <Answer>sample string 3</Answer> <Checked>true</Checked> <CreateDate>2024-12-26T18:08:13.1110249+07:00</CreateDate> <ID>1</ID> <IdTestDetail>8</IdTestDetail> <Image>sample string 9</Image> <IsRight>true</IsRight> <QuestionID>2</QuestionID> <TextRight>sample string 6</TextRight> </QuestionAnswersModel> </QuestionAnswer> <QuestionAnswerRight> <Answer>sample string 3</Answer> <Checked>true</Checked> <CreateDate>2024-12-26T18:08:13.1110249+07:00</CreateDate> <ID>1</ID> <IdTestDetail>8</IdTestDetail> <Image>sample string 9</Image> <IsRight>true</IsRight> <QuestionID>2</QuestionID> <TextRight>sample string 6</TextRight> </QuestionAnswerRight> <RightAnwer>sample string 8</RightAnwer> <Stop>true</Stop> <UpdateByUser>sample string 7</UpdateByUser> <UpdateDate>2024-12-26T18:08:13.1110249+07:00</UpdateDate> </QuestionModel> <QuestionModel> <ChecksumParam> <ChecksumDelete>sample string 2</ChecksumDelete> <ChecksumEdit>sample string 1</ChecksumEdit> <ChecksumRequest>sample string 3</ChecksumRequest> <ChecksumRequest2>sample string 4</ChecksumRequest2> </ChecksumParam> <CreateByUser>sample string 6</CreateByUser> <CreateDate>2024-12-26T18:08:13.1110249+07:00</CreateDate> <ID>1</ID> <Image>sample string 3</Image> <Question>sample string 2</Question> <QuestionAnswer> <QuestionAnswersModel> <Answer>sample string 3</Answer> <Checked>true</Checked> <CreateDate>2024-12-26T18:08:13.1110249+07:00</CreateDate> <ID>1</ID> <IdTestDetail>8</IdTestDetail> <Image>sample string 9</Image> <IsRight>true</IsRight> <QuestionID>2</QuestionID> <TextRight>sample string 6</TextRight> </QuestionAnswersModel> <QuestionAnswersModel> <Answer>sample string 3</Answer> <Checked>true</Checked> <CreateDate>2024-12-26T18:08:13.1110249+07:00</CreateDate> <ID>1</ID> <IdTestDetail>8</IdTestDetail> <Image>sample string 9</Image> <IsRight>true</IsRight> <QuestionID>2</QuestionID> <TextRight>sample string 6</TextRight> </QuestionAnswersModel> </QuestionAnswer> <QuestionAnswerRight> <Answer>sample string 3</Answer> <Checked>true</Checked> <CreateDate>2024-12-26T18:08:13.1110249+07:00</CreateDate> <ID>1</ID> <IdTestDetail>8</IdTestDetail> <Image>sample string 9</Image> <IsRight>true</IsRight> <QuestionID>2</QuestionID> <TextRight>sample string 6</TextRight> </QuestionAnswerRight> <RightAnwer>sample string 8</RightAnwer> <Stop>true</Stop> <UpdateByUser>sample string 7</UpdateByUser> <UpdateDate>2024-12-26T18:08:13.1110249+07:00</UpdateDate> </QuestionModel> </ListQuestion> <Lop>sample string 25</Lop> <MaSinhVien>sample string 24</MaSinhVien> <NgayBatDau>2024-12-26T18:08:13.1110249+07:00</NgayBatDau> <NgayHienDapAn>2024-12-26T18:08:13.1110249+07:00</NgayHienDapAn> <NgayHienDiem>2024-12-26T18:08:13.1110249+07:00</NgayHienDiem> <NgayKetThuc>2024-12-26T18:08:13.1110249+07:00</NgayKetThuc> <NumberQuestion>4</NumberQuestion> <PhutConLai>21</PhutConLai> <Semester>16</Semester> <Stop>true</Stop> <SubjectCode>sample string 14</SubjectCode> <TenSinhVien>sample string 23</TenSinhVien> <Time>1</Time> <Title>sample string 2</Title> <TongDiem>sample string 26</TongDiem> <UpdateByUser>sample string 8</UpdateByUser> <UpdateDate>2024-12-26T18:08:13.1110249+07:00</UpdateDate> <Year>sample string 15</Year> <YearSemester>sample string 17</YearSemester> <dsCourse xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:long>1</d2p1:long> <d2p1:long>2</d2p1:long> </dsCourse> <dsCourseCode>sample string 18</dsCourseCode> <readOnly>true</readOnly> </TestTopicModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | 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. |