POST api/test-multichoice/SaveTestAuto
Request Information
URI Parameters
None.
Body Parameters
ResultTestMultipleChoiceModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Message | string |
None. |
|
| NumberRightAnswer | integer |
None. |
|
| NumberFailAnswer | integer |
None. |
|
| ErrorModel | ErrorModel |
None. |
|
| TestID | integer |
None. |
|
| BeginDate | date |
None. |
|
| EndDate | date |
None. |
|
| Score | decimal number |
None. |
|
| ID | decimal number |
None. |
|
| QuestionAnswer | Collection of QuestionAnswersModel |
None. |
|
| Flag | integer |
None. |
|
| IdTestDone | integer |
None. |
|
| FLagDaLam | boolean |
None. |
|
| NgayBatDau | date |
None. |
|
| NgayKetThuc | date |
None. |
|
| PhutConLai | integer |
None. |
|
| GiayConLai | integer |
None. |
|
| key | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"message": "sample string 1",
"numberRightAnswer": 2,
"numberFailAnswer": 3,
"errorModel": {
"message": "sample string 1",
"code": "sample string 2",
"status": true
},
"testID": 4,
"beginDate": "2025-10-30T21:22:06.4811922+07:00",
"endDate": "2025-10-30T21:22:06.4811922+07:00",
"score": 7.1,
"id": 8.0,
"questionAnswer": [
{
"id": 1,
"questionID": 2,
"answer": "sample string 3",
"isRight": true,
"createDate": "2025-10-30T21:22:06.4968207+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": "2025-10-30T21:22:06.4968207+07:00",
"textRight": "sample string 6",
"checked": true,
"idTestDetail": 8,
"image": "sample string 9"
}
],
"flag": 9,
"idTestDone": 10,
"fLagDaLam": true,
"ngayBatDau": "2025-10-30T21:22:06.4968207+07:00",
"ngayKetThuc": "2025-10-30T21:22:06.4968207+07:00",
"phutConLai": 12,
"giayConLai": 13,
"key": 14
}
text/html
Sample:
{"message":"sample string 1","numberRightAnswer":2,"numberFailAnswer":3,"errorModel":{"message":"sample string 1","code":"sample string 2","status":true},"testID":4,"beginDate":"2025-10-30T21:22:06.4811922+07:00","endDate":"2025-10-30T21:22:06.4811922+07:00","score":7.1,"id":8.0,"questionAnswer":[{"id":1,"questionID":2,"answer":"sample string 3","isRight":true,"createDate":"2025-10-30T21:22:06.4968207+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":"2025-10-30T21:22:06.4968207+07:00","textRight":"sample string 6","checked":true,"idTestDetail":8,"image":"sample string 9"}],"flag":9,"idTestDone":10,"fLagDaLam":true,"ngayBatDau":"2025-10-30T21:22:06.4968207+07:00","ngayKetThuc":"2025-10-30T21:22:06.4968207+07:00","phutConLai":12,"giayConLai":13,"key":14}
application/xml, text/xml
Sample:
<ResultTestMultipleChoiceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/App.Model.ViewModel">
<BeginDate>2025-10-30T21:22:06.4811922+07:00</BeginDate>
<EndDate>2025-10-30T21:22:06.4811922+07:00</EndDate>
<ErrorModel>
<code>sample string 2</code>
<message>sample string 1</message>
<status>true</status>
</ErrorModel>
<FLagDaLam>true</FLagDaLam>
<Flag>9</Flag>
<GiayConLai>13</GiayConLai>
<ID>8</ID>
<IdTestDone>10</IdTestDone>
<Message>sample string 1</Message>
<NgayBatDau>2025-10-30T21:22:06.4968207+07:00</NgayBatDau>
<NgayKetThuc>2025-10-30T21:22:06.4968207+07:00</NgayKetThuc>
<NumberFailAnswer>3</NumberFailAnswer>
<NumberRightAnswer>2</NumberRightAnswer>
<PhutConLai>12</PhutConLai>
<QuestionAnswer>
<QuestionAnswersModel>
<Answer>sample string 3</Answer>
<Checked>true</Checked>
<CreateDate>2025-10-30T21:22:06.4968207+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>2025-10-30T21:22:06.4968207+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>
<Score>7.1</Score>
<TestID>4</TestID>
<key>14</key>
</ResultTestMultipleChoiceModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
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. |