POST api/Marker/MarkerEndTest?MockTestFK={MockTestFK}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
MockTestFK

integer

Required

Body Parameters

Collection of vmMockTestAnswerDetails
NameDescriptionTypeAdditional information
QuestionFK

integer

None.

Answer

string

None.

WordCount

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "QuestionFK": 1,
    "Answer": "sample string 2",
    "WordCount": 3
  },
  {
    "QuestionFK": 1,
    "Answer": "sample string 2",
    "WordCount": 3
  }
]

application/xml, text/xml

Sample:
<ArrayOfvmMockTestAnswerDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TrishAcademy.ViewModel">
  <vmMockTestAnswerDetails>
    <Answer>sample string 2</Answer>
    <QuestionFK>1</QuestionFK>
    <WordCount>3</WordCount>
  </vmMockTestAnswerDetails>
  <vmMockTestAnswerDetails>
    <Answer>sample string 2</Answer>
    <QuestionFK>1</QuestionFK>
    <WordCount>3</WordCount>
  </vmMockTestAnswerDetails>
</ArrayOfvmMockTestAnswerDetails>

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 'List`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.