GET api/QuestionAnswer?answerId={answerId}&token={token}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
answerId

integer

Required

token

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of MDLQuestionAnswer
NameDescriptionTypeAdditional information
Id

integer

None.

Question

MDLQuestion

None.

Answers

Collection of MDLAnswer

None.

QuestionId

integer

None.

AnswerId

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Question": {
      "Id": 1,
      "Question": "sample string 2",
      "Comment": "sample string 3",
      "Identifier": "sample string 4"
    },
    "Answers": [
      {
        "Id": 1,
        "Answer": "sample string 2",
        "Identifier": "sample string 3",
        "Comment": "sample string 4"
      },
      {
        "Id": 1,
        "Answer": "sample string 2",
        "Identifier": "sample string 3",
        "Comment": "sample string 4"
      }
    ],
    "QuestionId": 2,
    "AnswerId": 3
  },
  {
    "Id": 1,
    "Question": {
      "Id": 1,
      "Question": "sample string 2",
      "Comment": "sample string 3",
      "Identifier": "sample string 4"
    },
    "Answers": [
      {
        "Id": 1,
        "Answer": "sample string 2",
        "Identifier": "sample string 3",
        "Comment": "sample string 4"
      },
      {
        "Id": 1,
        "Answer": "sample string 2",
        "Identifier": "sample string 3",
        "Comment": "sample string 4"
      }
    ],
    "QuestionId": 2,
    "AnswerId": 3
  }
]

application/xml, text/xml

Sample:
<ArrayOfMDLQuestionAnswer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Asanus.BarCon.Middleware.Shared.ComplaintsManagement">
  <MDLQuestionAnswer>
    <AnswerId>3</AnswerId>
    <Answers>
      <MDLAnswer>
        <Answer>sample string 2</Answer>
        <Comment>sample string 4</Comment>
        <Id>1</Id>
        <Identifier>sample string 3</Identifier>
      </MDLAnswer>
      <MDLAnswer>
        <Answer>sample string 2</Answer>
        <Comment>sample string 4</Comment>
        <Id>1</Id>
        <Identifier>sample string 3</Identifier>
      </MDLAnswer>
    </Answers>
    <Id>1</Id>
    <Question>
      <Comment>sample string 3</Comment>
      <Id>1</Id>
      <Identifier>sample string 4</Identifier>
      <Question>sample string 2</Question>
    </Question>
    <QuestionId>2</QuestionId>
  </MDLQuestionAnswer>
  <MDLQuestionAnswer>
    <AnswerId>3</AnswerId>
    <Answers>
      <MDLAnswer>
        <Answer>sample string 2</Answer>
        <Comment>sample string 4</Comment>
        <Id>1</Id>
        <Identifier>sample string 3</Identifier>
      </MDLAnswer>
      <MDLAnswer>
        <Answer>sample string 2</Answer>
        <Comment>sample string 4</Comment>
        <Id>1</Id>
        <Identifier>sample string 3</Identifier>
      </MDLAnswer>
    </Answers>
    <Id>1</Id>
    <Question>
      <Comment>sample string 3</Comment>
      <Id>1</Id>
      <Identifier>sample string 4</Identifier>
      <Question>sample string 2</Question>
    </Question>
    <QuestionId>2</QuestionId>
  </MDLQuestionAnswer>
</ArrayOfMDLQuestionAnswer>