GET api/v{version}/laboratory/{laboratoryId}/survey/{surveyId}/answer?surveyQuestionId={surveyQuestionId}
List the available answers for the specified survey/question.
Request Information
URI Parameters
Name | Description | Type | Additional 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
ResponseOfIEnumerableOfSurveyAnswerListModelName | Description | Type | Additional information |
---|---|---|---|
Data | Collection of SurveyAnswerListModel |
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": [ { "surveyAnswerID": 1, "surveyQuestionID": 2, "surveyID": 3, "answerText": "sample string 4", "displaySeq": 5, "isCorrect": true, "acceptWriteIn": true, "pictureID": 8, "pointValue": 9, "actionID": 10, "goToQuestionID": 11, "startApplicationID": 12, "surveyStateOnExitOptionID": 13 }, { "surveyAnswerID": 1, "surveyQuestionID": 2, "surveyID": 3, "answerText": "sample string 4", "displaySeq": 5, "isCorrect": true, "acceptWriteIn": true, "pictureID": 8, "pointValue": 9, "actionID": 10, "goToQuestionID": 11, "startApplicationID": 12, "surveyStateOnExitOptionID": 13 } ], "statusCode": 100, "statusDescription": "sample string 1", "errors": [ "sample string 1", "sample string 2" ] }
application/xml, text/xml
Sample:
<ResponseOfArrayOfSurveyAnswerListModeluskxzdf5 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:SurveyAnswerListModel> <d2p1:AcceptWriteIn>true</d2p1:AcceptWriteIn> <d2p1:ActionID>10</d2p1:ActionID> <d2p1:AnswerText>sample string 4</d2p1:AnswerText> <d2p1:DisplaySeq>5</d2p1:DisplaySeq> <d2p1:GoToQuestionID>11</d2p1:GoToQuestionID> <d2p1:IsCorrect>true</d2p1:IsCorrect> <d2p1:PictureID>8</d2p1:PictureID> <d2p1:PointValue>9</d2p1:PointValue> <d2p1:StartApplicationID>12</d2p1:StartApplicationID> <d2p1:SurveyAnswerID>1</d2p1:SurveyAnswerID> <d2p1:SurveyID>3</d2p1:SurveyID> <d2p1:SurveyQuestionID>2</d2p1:SurveyQuestionID> <d2p1:SurveyStateOnExitOptionID>13</d2p1:SurveyStateOnExitOptionID> </d2p1:SurveyAnswerListModel> <d2p1:SurveyAnswerListModel> <d2p1:AcceptWriteIn>true</d2p1:AcceptWriteIn> <d2p1:ActionID>10</d2p1:ActionID> <d2p1:AnswerText>sample string 4</d2p1:AnswerText> <d2p1:DisplaySeq>5</d2p1:DisplaySeq> <d2p1:GoToQuestionID>11</d2p1:GoToQuestionID> <d2p1:IsCorrect>true</d2p1:IsCorrect> <d2p1:PictureID>8</d2p1:PictureID> <d2p1:PointValue>9</d2p1:PointValue> <d2p1:StartApplicationID>12</d2p1:StartApplicationID> <d2p1:SurveyAnswerID>1</d2p1:SurveyAnswerID> <d2p1:SurveyID>3</d2p1:SurveyID> <d2p1:SurveyQuestionID>2</d2p1:SurveyQuestionID> <d2p1:SurveyStateOnExitOptionID>13</d2p1:SurveyStateOnExitOptionID> </d2p1:SurveyAnswerListModel> </Data> </ResponseOfArrayOfSurveyAnswerListModeluskxzdf5>