GET api/RedBookSurvey/GetQuestionListBySurvey?surveyID={surveyID}

Gets the question list by survey.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
surveyID

The survey identifier.

integer

Required

Body Parameters

None.

Response Information

Resource Description

SurveyViewModel
NameDescriptionTypeAdditional information
SurveyQuestionModel

Gets or sets the survey question model.

Collection of SurveyQuestionViewModel

None.

SurveyID

Gets or sets the survey identifier.

integer

None.

SurveyName

Gets or sets the name of the survey.

string

None.

SurveyDescription

Gets or sets the survey description.

string

None.

SurveyType

Gets or sets the type of the survey.

integer

None.

StartDate

Gets or sets the start date.

date

None.

EndDate

Gets or sets the end date.

date

None.

PublishedDate

Gets or sets the published date.

date

None.

Response Formats

application/json, text/json

Sample:
{
  "SurveyQuestionModel": [
    {
      "SurveyQuestionID": 1,
      "SurveyQuestionType": "sample string 2",
      "SurveyQuestionTypeID": 1,
      "QuestionTitle": "sample string 3",
      "QuestionOrder": 1,
      "SurveyQuestionOptions": [
        {
          "SurveyQuestionOptionID": 1,
          "OptionValue": "sample string 2"
        },
        {
          "SurveyQuestionOptionID": 1,
          "OptionValue": "sample string 2"
        }
      ]
    },
    {
      "SurveyQuestionID": 1,
      "SurveyQuestionType": "sample string 2",
      "SurveyQuestionTypeID": 1,
      "QuestionTitle": "sample string 3",
      "QuestionOrder": 1,
      "SurveyQuestionOptions": [
        {
          "SurveyQuestionOptionID": 1,
          "OptionValue": "sample string 2"
        },
        {
          "SurveyQuestionOptionID": 1,
          "OptionValue": "sample string 2"
        }
      ]
    }
  ],
  "SurveyID": 1,
  "SurveyName": "sample string 1",
  "SurveyDescription": "sample string 2",
  "SurveyType": 1,
  "StartDate": "2025-06-24T13:48:59.5879587-04:00",
  "EndDate": "2025-06-24T13:48:59.5879587-04:00",
  "PublishedDate": "2025-06-24T13:48:59.5889604-04:00"
}

text/html

Sample:
{"SurveyQuestionModel":[{"SurveyQuestionID":1,"SurveyQuestionType":"sample string 2","SurveyQuestionTypeID":1,"QuestionTitle":"sample string 3","QuestionOrder":1,"SurveyQuestionOptions":[{"SurveyQuestionOptionID":1,"OptionValue":"sample string 2"},{"SurveyQuestionOptionID":1,"OptionValue":"sample string 2"}]},{"SurveyQuestionID":1,"SurveyQuestionType":"sample string 2","SurveyQuestionTypeID":1,"QuestionTitle":"sample string 3","QuestionOrder":1,"SurveyQuestionOptions":[{"SurveyQuestionOptionID":1,"OptionValue":"sample string 2"},{"SurveyQuestionOptionID":1,"OptionValue":"sample string 2"}]}],"SurveyID":1,"SurveyName":"sample string 1","SurveyDescription":"sample string 2","SurveyType":1,"StartDate":"2025-06-24T13:48:59.5879587-04:00","EndDate":"2025-06-24T13:48:59.5879587-04:00","PublishedDate":"2025-06-24T13:48:59.5889604-04:00"}