GET api/RedBookSurvey/GetQuestionListBySurvey?surveyID={surveyID}
Gets the question list by survey.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| surveyID |
The survey identifier. |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
SurveyViewModel| Name | Description | Type | Additional 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": "2026-01-09T15:57:27.9462285-05:00",
"EndDate": "2026-01-09T15:57:27.9462285-05:00",
"PublishedDate": "2026-01-09T15:57:27.9472284-05: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":"2026-01-09T15:57:27.9462285-05:00","EndDate":"2026-01-09T15:57:27.9462285-05:00","PublishedDate":"2026-01-09T15:57:27.9472284-05:00"}