GET api/v{version}/laboratory/{laboratoryId}/survey/{surveyId}/question/{surveyQuestionId}

List the available questions for the specified survey

Request Information

URI Parameters

NameDescriptionTypeAdditional information
laboratoryId

integer

Required

surveyId

integer

Default value is -1

surveyQuestionId

integer

Default value is -1

version

string

None.

Body Parameters

None.

Response Information

Resource Description

ResponseOfIEnumerableOfSurveyQuestionListModel
NameDescriptionTypeAdditional information
Data

Collection of SurveyQuestionListModel

None.

StatusCode

Gets or sets the status code.

HttpStatusCode

None.

StatusDescription

Gets or sets the status description.

string

None.

Errors

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": [
    {
      "surveyQuestionID": 1,
      "surveyID": 2,
      "displaySeq": 3,
      "question": "sample string 4",
      "surveyAnswerTypeID": 5,
      "instructions": "sample string 6",
      "messageIfCorrect": "sample string 7",
      "messageIfIncorrect": "sample string 8",
      "pictureID": 9,
      "pointsIfCorrect": 10,
      "useLargeAnswerPictures": true,
      "lessonPlanID": 12,
      "hideQuestion": true,
      "requireAnswer": true,
      "categoryName": "sample string 15",
      "surveyCategoryID": 16
    },
    {
      "surveyQuestionID": 1,
      "surveyID": 2,
      "displaySeq": 3,
      "question": "sample string 4",
      "surveyAnswerTypeID": 5,
      "instructions": "sample string 6",
      "messageIfCorrect": "sample string 7",
      "messageIfIncorrect": "sample string 8",
      "pictureID": 9,
      "pointsIfCorrect": 10,
      "useLargeAnswerPictures": true,
      "lessonPlanID": 12,
      "hideQuestion": true,
      "requireAnswer": true,
      "categoryName": "sample string 15",
      "surveyCategoryID": 16
    }
  ],
  "statusCode": 100,
  "statusDescription": "sample string 1",
  "errors": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<ResponseOfArrayOfSurveyQuestionListModeluskxzdf5 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CancerBytesAPI.Response">
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Errors>
  <StatusCode>Continue</StatusCode>
  <StatusDescription>sample string 1</StatusDescription>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/CancerBytesAPI.Models">
    <d2p1:SurveyQuestionListModel>
      <d2p1:CategoryName>sample string 15</d2p1:CategoryName>
      <d2p1:DisplaySeq>3</d2p1:DisplaySeq>
      <d2p1:HideQuestion>true</d2p1:HideQuestion>
      <d2p1:Instructions>sample string 6</d2p1:Instructions>
      <d2p1:LessonPlanID>12</d2p1:LessonPlanID>
      <d2p1:MessageIfCorrect>sample string 7</d2p1:MessageIfCorrect>
      <d2p1:MessageIfIncorrect>sample string 8</d2p1:MessageIfIncorrect>
      <d2p1:PictureID>9</d2p1:PictureID>
      <d2p1:PointsIfCorrect>10</d2p1:PointsIfCorrect>
      <d2p1:Question>sample string 4</d2p1:Question>
      <d2p1:RequireAnswer>true</d2p1:RequireAnswer>
      <d2p1:SurveyAnswerTypeID>5</d2p1:SurveyAnswerTypeID>
      <d2p1:SurveyCategoryID>16</d2p1:SurveyCategoryID>
      <d2p1:SurveyID>2</d2p1:SurveyID>
      <d2p1:SurveyQuestionID>1</d2p1:SurveyQuestionID>
      <d2p1:UseLargeAnswerPictures>true</d2p1:UseLargeAnswerPictures>
    </d2p1:SurveyQuestionListModel>
    <d2p1:SurveyQuestionListModel>
      <d2p1:CategoryName>sample string 15</d2p1:CategoryName>
      <d2p1:DisplaySeq>3</d2p1:DisplaySeq>
      <d2p1:HideQuestion>true</d2p1:HideQuestion>
      <d2p1:Instructions>sample string 6</d2p1:Instructions>
      <d2p1:LessonPlanID>12</d2p1:LessonPlanID>
      <d2p1:MessageIfCorrect>sample string 7</d2p1:MessageIfCorrect>
      <d2p1:MessageIfIncorrect>sample string 8</d2p1:MessageIfIncorrect>
      <d2p1:PictureID>9</d2p1:PictureID>
      <d2p1:PointsIfCorrect>10</d2p1:PointsIfCorrect>
      <d2p1:Question>sample string 4</d2p1:Question>
      <d2p1:RequireAnswer>true</d2p1:RequireAnswer>
      <d2p1:SurveyAnswerTypeID>5</d2p1:SurveyAnswerTypeID>
      <d2p1:SurveyCategoryID>16</d2p1:SurveyCategoryID>
      <d2p1:SurveyID>2</d2p1:SurveyID>
      <d2p1:SurveyQuestionID>1</d2p1:SurveyQuestionID>
      <d2p1:UseLargeAnswerPictures>true</d2p1:UseLargeAnswerPictures>
    </d2p1:SurveyQuestionListModel>
  </Data>
</ResponseOfArrayOfSurveyQuestionListModeluskxzdf5>