POST api/test/submitresult

Request Information

URI Parameters

None.

Body Parameters

TestSubmitIDModel
NameDescriptionTypeAdditional information
QuizID

integer

None.

QuizHKEY

string

None.

UserID

string

None.

QuizResultID

integer

None.

ResultHKEY

string

None.

Request Formats

application/json, text/json

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

application/xml, text/xml

Sample:
<TestSubmitIDModel 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>
  <UserID>sample string 3</UserID>
</TestSubmitIDModel>

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

Response Information

Resource Description

TestResultSubmitModel
NameDescriptionTypeAdditional information
QuizResultID

integer

None.

ResultHKEY

string

None.

SolutionID

integer

None.

HeaderTitle

string

None.

HeaderImageUrl

string

None.

UserFirstName

string

None.

ResultTitle

string

None.

ResultContent

string

None.

SubmitEmail

boolean

None.

SubmitSuccess

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "QuizResultID": 1,
  "ResultHKEY": "sample string 2",
  "SolutionID": 3,
  "HeaderTitle": "sample string 4",
  "HeaderImageUrl": "sample string 5",
  "UserFirstName": "sample string 6",
  "ResultTitle": "sample string 7",
  "ResultContent": "sample string 8",
  "SubmitEmail": true,
  "SubmitSuccess": true
}

application/xml, text/xml

Sample:
<TestResultSubmitModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoulSeasons2017.Models">
  <HeaderImageUrl>sample string 5</HeaderImageUrl>
  <HeaderTitle>sample string 4</HeaderTitle>
  <QuizResultID>1</QuizResultID>
  <ResultContent>sample string 8</ResultContent>
  <ResultHKEY>sample string 2</ResultHKEY>
  <ResultTitle>sample string 7</ResultTitle>
  <SolutionID>3</SolutionID>
  <SubmitEmail>true</SubmitEmail>
  <SubmitSuccess>true</SubmitSuccess>
  <UserFirstName>sample string 6</UserFirstName>
</TestResultSubmitModel>