POST api/test/submitoption

Request Information

URI Parameters

None.

Body Parameters

TestOptionSubmitModel
NameDescriptionTypeAdditional information
QuizResultID

integer

None.

ResultHKEY

string

None.

FormID

integer

None.

FormControlID

integer

None.

UserContent

string

None.

Sequence

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "QuizResultID": 1,
  "ResultHKEY": "sample string 2",
  "FormID": 3,
  "FormControlID": 4,
  "UserContent": "sample string 5",
  "Sequence": 6
}

application/xml, text/xml

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

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 'TestOptionSubmitModel'.

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>