POST api/TestTopic/AddEditQuestionTest?TestID={TestID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
TestID

integer

Required

Body Parameters

QuestionModel
NameDescriptionTypeAdditional information
ID

integer

None.

Question

string

None.

Image

string

None.

Stop

boolean

None.

CreateDate

date

None.

CreateByUser

string

None.

UpdateByUser

string

None.

UpdateDate

date

None.

QuestionAnswer

Collection of QuestionAnswersModel

None.

QuestionAnswerRight

QuestionAnswersModel

None.

RightAnwer

string

None.

ChecksumParam

ChecksumParamModel

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "question": "sample string 2",
  "image": "sample string 3",
  "stop": true,
  "createDate": "2024-12-26T18:13:54.1420834+07:00",
  "createByUser": "sample string 6",
  "updateByUser": "sample string 7",
  "updateDate": "2024-12-26T18:13:54.1420834+07:00",
  "questionAnswer": [
    {
      "id": 1,
      "questionID": 2,
      "answer": "sample string 3",
      "isRight": true,
      "createDate": "2024-12-26T18:13:54.1420834+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:13:54.1420834+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:13:54.1420834+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"
  }
}

text/html

Sample:
{"id":1,"question":"sample string 2","image":"sample string 3","stop":true,"createDate":"2024-12-26T18:13:54.1420834+07:00","createByUser":"sample string 6","updateByUser":"sample string 7","updateDate":"2024-12-26T18:13:54.1420834+07:00","questionAnswer":[{"id":1,"questionID":2,"answer":"sample string 3","isRight":true,"createDate":"2024-12-26T18:13:54.1420834+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:13:54.1420834+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:13:54.1420834+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"}}

application/xml, text/xml

Sample:
<QuestionModel 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>
  <CreateByUser>sample string 6</CreateByUser>
  <CreateDate>2024-12-26T18:13:54.1420834+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:13:54.1420834+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:13:54.1420834+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:13:54.1420834+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:13:54.1420834+07:00</UpdateDate>
</QuestionModel>

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.