POST api/AddUpdateDistAnswer

No documentation available.

Request Information

Parameters

NameDescriptionAdditional information
objDistAnswer
No documentation available.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
[
  {
    "Answer": "sample string 1",
    "QuestionID": 2,
    "TestID": 3,
    "Explanation": "sample string 4"
  },
  {
    "Answer": "sample string 1",
    "QuestionID": 2,
    "TestID": 3,
    "Explanation": "sample string 4"
  },
  {
    "Answer": "sample string 1",
    "QuestionID": 2,
    "TestID": 3,
    "Explanation": "sample string 4"
  }
]

text/html

Sample:
[{"Answer":"sample string 1","QuestionID":2,"TestID":3,"Explanation":"sample string 4"},{"Answer":"sample string 1","QuestionID":2,"TestID":3,"Explanation":"sample string 4"},{"Answer":"sample string 1","QuestionID":2,"TestID":3,"Explanation":"sample string 4"}]

application/xml, text/xml

Sample:
<ArrayOfDistAnswerViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ViewModels.DistanceTest">
  <DistAnswerViewModel>
    <Answer>sample string 1</Answer>
    <Explanation>sample string 4</Explanation>
    <QuestionID>2</QuestionID>
    <TestID>3</TestID>
  </DistAnswerViewModel>
  <DistAnswerViewModel>
    <Answer>sample string 1</Answer>
    <Explanation>sample string 4</Explanation>
    <QuestionID>2</QuestionID>
    <TestID>3</TestID>
  </DistAnswerViewModel>
  <DistAnswerViewModel>
    <Answer>sample string 1</Answer>
    <Explanation>sample string 4</Explanation>
    <QuestionID>2</QuestionID>
    <TestID>3</TestID>
  </DistAnswerViewModel>
</ArrayOfDistAnswerViewModel>

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