GET api/surveys/questions/{question}/answers

Gives you the answers with comments of a given survey question

Request Information

URI Parameters

NameDescriptionTypeAdditional information
question

Question ID

integer

Required

Body Parameters

None.

Response Information

Resource Description

List of answers

Collection of SurveyQuestionAnswerDTO
NameDescriptionTypeAdditional information
ID

Answer ID

integer

None.

Question

ID of parent Question

integer

None.

Alternative

Alternative answer, if question with alternatives

SurveyQuestionAlternativeDTO

None.

NumericalAnswer

Numerical/slider answer, if slider question

decimal number

None.

TextAnswer

Text answer, if text question

string

None.

Comment

Comment text, if any

string

None.

User

Answer author

SurveyUserDTO

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ID": 1,
    "Question": 2,
    "Alternative": {
      "Question": 1,
      "ID": 2,
      "Name": "sample string 3",
      "Order": 1,
      "AlarmTrigger": true
    },
    "NumericalAnswer": 1.0,
    "TextAnswer": "sample string 3",
    "Comment": "sample string 4",
    "User": {
      "ID": 1,
      "FirstName": "sample string 2",
      "LastName": "sample string 3",
      "Title": "sample string 4",
      "Organization": "sample string 5",
      "Address": "sample string 6",
      "ZIP": "sample string 7",
      "City": "sample string 8",
      "Email": "sample string 9",
      "Notes": "sample string 10",
      "Phone": "sample string 11",
      "Custom1": "sample string 12",
      "Custom2": "sample string 13",
      "Custom3": "sample string 14",
      "Custom4": "sample string 15",
      "Custom5": "sample string 16",
      "Opened": "2019-08-19T04:33:27.8539803+00:00",
      "Answered": "2019-08-19T04:33:27.8539803+00:00"
    }
  },
  {
    "ID": 1,
    "Question": 2,
    "Alternative": {
      "Question": 1,
      "ID": 2,
      "Name": "sample string 3",
      "Order": 1,
      "AlarmTrigger": true
    },
    "NumericalAnswer": 1.0,
    "TextAnswer": "sample string 3",
    "Comment": "sample string 4",
    "User": {
      "ID": 1,
      "FirstName": "sample string 2",
      "LastName": "sample string 3",
      "Title": "sample string 4",
      "Organization": "sample string 5",
      "Address": "sample string 6",
      "ZIP": "sample string 7",
      "City": "sample string 8",
      "Email": "sample string 9",
      "Notes": "sample string 10",
      "Phone": "sample string 11",
      "Custom1": "sample string 12",
      "Custom2": "sample string 13",
      "Custom3": "sample string 14",
      "Custom4": "sample string 15",
      "Custom5": "sample string 16",
      "Opened": "2019-08-19T04:33:27.8539803+00:00",
      "Answered": "2019-08-19T04:33:27.8539803+00:00"
    }
  }
]