POST api/test/questionform

Request Information

URI Parameters

None.

Body Parameters

TestQuestionIDModel
NameDescriptionTypeAdditional information
QuizID

integer

None.

QuizHKEY

string

None.

Sequence

integer

None.

QuizResultID

integer

None.

ResultHKEY

string

None.

Request Formats

application/json, text/json

Sample:
{
  "QuizID": 1,
  "QuizHKEY": "sample string 2",
  "Sequence": 3,
  "QuizResultID": 4,
  "ResultHKEY": "sample string 5"
}

application/xml, text/xml

Sample:
<TestQuestionIDModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoulSeasons2017.Models">
  <QuizHKEY>sample string 2</QuizHKEY>
  <QuizID>1</QuizID>
  <QuizResultID>4</QuizResultID>
  <ResultHKEY>sample string 5</ResultHKEY>
  <Sequence>3</Sequence>
</TestQuestionIDModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'TestQuestionIDModel'.

Response Information

Resource Description

TestQuestionModel
NameDescriptionTypeAdditional information
QuizID

integer

None.

QuizHKEY

string

None.

FormID

integer

None.

QuizResultID

integer

None.

ResultHKEY

string

None.

Sequence

integer

None.

QuestionContent

string

None.

ResponseOptions

Collection of TestOptionModel

None.

IsSubmitted

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "QuizID": 1,
  "QuizHKEY": "sample string 2",
  "FormID": 3,
  "QuizResultID": 4,
  "ResultHKEY": "sample string 5",
  "Sequence": 6,
  "QuestionContent": "sample string 7",
  "ResponseOptions": [
    {
      "FormID": 1,
      "FormControlID": 2,
      "Sequence": 3,
      "OptionContent": "sample string 4",
      "UserValue": "sample string 5",
      "IsSelected": true,
      "ControlType": 1
    },
    {
      "FormID": 1,
      "FormControlID": 2,
      "Sequence": 3,
      "OptionContent": "sample string 4",
      "UserValue": "sample string 5",
      "IsSelected": true,
      "ControlType": 1
    }
  ],
  "IsSubmitted": true
}

application/xml, text/xml

Sample:
<TestQuestionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoulSeasons2017.Models">
  <FormID>3</FormID>
  <IsSubmitted>true</IsSubmitted>
  <QuestionContent>sample string 7</QuestionContent>
  <QuizHKEY>sample string 2</QuizHKEY>
  <QuizID>1</QuizID>
  <QuizResultID>4</QuizResultID>
  <ResponseOptions>
    <TestOptionModel>
      <ControlType>Textbox</ControlType>
      <FormControlID>2</FormControlID>
      <FormID>1</FormID>
      <IsSelected>true</IsSelected>
      <OptionContent>sample string 4</OptionContent>
      <Sequence>3</Sequence>
      <UserValue>sample string 5</UserValue>
    </TestOptionModel>
    <TestOptionModel>
      <ControlType>Textbox</ControlType>
      <FormControlID>2</FormControlID>
      <FormID>1</FormID>
      <IsSelected>true</IsSelected>
      <OptionContent>sample string 4</OptionContent>
      <Sequence>3</Sequence>
      <UserValue>sample string 5</UserValue>
    </TestOptionModel>
  </ResponseOptions>
  <ResultHKEY>sample string 5</ResultHKEY>
  <Sequence>6</Sequence>
</TestQuestionModel>