POST api/GetQuestion
Request Information
URI Parameters
None.
Body Parameters
SurveyModel| Name | Description | Type | Additional information |
|---|---|---|---|
| SurveyId | integer |
None. |
|
| SurveyName | string |
None. |
|
| SurveyDescription | string |
None. |
|
| Picture | string |
None. |
|
| SurveyCost | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"SurveyId": 1,
"SurveyName": "sample string 2",
"SurveyDescription": "sample string 3",
"Picture": "sample string 4",
"SurveyCost": 5.0
}
application/xml, text/xml
Sample:
<SurveyModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DecstopAPI.Models"> <Picture>sample string 4</Picture> <SurveyCost>5</SurveyCost> <SurveyDescription>sample string 3</SurveyDescription> <SurveyId>1</SurveyId> <SurveyName>sample string 2</SurveyName> </SurveyModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of QuestionModel| Name | Description | Type | Additional information |
|---|---|---|---|
| SQId | integer |
None. |
|
| SurveyId | integer |
None. |
|
| QuestionName | string |
None. |
|
| TypeId | integer |
None. |
|
| SubTypeId | integer |
None. |
|
| Option1 | string |
None. |
|
| Option2 | string |
None. |
|
| Option3 | string |
None. |
|
| Option4 | string |
None. |
|
| Option5 | string |
None. |
|
| Option6 | string |
None. |
|
| Option7 | string |
None. |
|
| Option8 | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"SQId": 1,
"SurveyId": 2,
"QuestionName": "sample string 3",
"TypeId": 4,
"SubTypeId": 5,
"Option1": "sample string 6",
"Option2": "sample string 7",
"Option3": "sample string 8",
"Option4": "sample string 9",
"Option5": "sample string 10",
"Option6": "sample string 11",
"Option7": "sample string 12",
"Option8": "sample string 13"
},
{
"SQId": 1,
"SurveyId": 2,
"QuestionName": "sample string 3",
"TypeId": 4,
"SubTypeId": 5,
"Option1": "sample string 6",
"Option2": "sample string 7",
"Option3": "sample string 8",
"Option4": "sample string 9",
"Option5": "sample string 10",
"Option6": "sample string 11",
"Option7": "sample string 12",
"Option8": "sample string 13"
}
]
application/xml, text/xml
Sample:
<ArrayOfQuestionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DecstopAPI.Models">
<QuestionModel>
<Option1>sample string 6</Option1>
<Option2>sample string 7</Option2>
<Option3>sample string 8</Option3>
<Option4>sample string 9</Option4>
<Option5>sample string 10</Option5>
<Option6>sample string 11</Option6>
<Option7>sample string 12</Option7>
<Option8>sample string 13</Option8>
<QuestionName>sample string 3</QuestionName>
<SQId>1</SQId>
<SubTypeId>5</SubTypeId>
<SurveyId>2</SurveyId>
<TypeId>4</TypeId>
</QuestionModel>
<QuestionModel>
<Option1>sample string 6</Option1>
<Option2>sample string 7</Option2>
<Option3>sample string 8</Option3>
<Option4>sample string 9</Option4>
<Option5>sample string 10</Option5>
<Option6>sample string 11</Option6>
<Option7>sample string 12</Option7>
<Option8>sample string 13</Option8>
<QuestionName>sample string 3</QuestionName>
<SQId>1</SQId>
<SubTypeId>5</SubTypeId>
<SurveyId>2</SurveyId>
<TypeId>4</TypeId>
</QuestionModel>
</ArrayOfQuestionModel>