GET api/states/{stateId}/sections/{stateSectionId}/questions
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| stateId | globally unique identifier |
Required |
|
| stateSectionId | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of StateQuestionDetail| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| StateId | globally unique identifier |
None. |
|
| StateSectionId | globally unique identifier |
None. |
|
| QuestionId | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| Text | string |
None. |
|
| Type | string |
None. |
|
| OrderIndex | integer |
None. |
|
| Choices | Collection of ChoiceSimple |
None. |
|
| ParentQuestionId | globally unique identifier |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": "7095194b-7827-4382-ac4c-bf6b12988d1c",
"StateId": "bbd21075-b58a-4811-aeac-21591ce99d73",
"StateSectionId": "6d2c70e9-dbb2-4501-831a-c333ec54d0c1",
"QuestionId": "1ade8d61-11ce-42c5-bde7-e063fccef75c",
"Name": "sample string 5",
"Text": "sample string 6",
"Type": "sample string 7",
"OrderIndex": 8,
"Choices": [
{
"Id": "640207f6-2882-4714-bc49-d3edc5aaaec4",
"Text": "sample string 2",
"OrderIndex": 3
},
{
"Id": "640207f6-2882-4714-bc49-d3edc5aaaec4",
"Text": "sample string 2",
"OrderIndex": 3
}
],
"ParentQuestionId": "7eb0e3cd-3004-41dd-b6b4-66a6d388af93"
},
{
"Id": "7095194b-7827-4382-ac4c-bf6b12988d1c",
"StateId": "bbd21075-b58a-4811-aeac-21591ce99d73",
"StateSectionId": "6d2c70e9-dbb2-4501-831a-c333ec54d0c1",
"QuestionId": "1ade8d61-11ce-42c5-bde7-e063fccef75c",
"Name": "sample string 5",
"Text": "sample string 6",
"Type": "sample string 7",
"OrderIndex": 8,
"Choices": [
{
"Id": "640207f6-2882-4714-bc49-d3edc5aaaec4",
"Text": "sample string 2",
"OrderIndex": 3
},
{
"Id": "640207f6-2882-4714-bc49-d3edc5aaaec4",
"Text": "sample string 2",
"OrderIndex": 3
}
],
"ParentQuestionId": "7eb0e3cd-3004-41dd-b6b4-66a6d388af93"
}
]
application/xml, text/xml
Sample:
<ArrayOfStateQuestionDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Admin.DTO">
<StateQuestionDetail>
<Choices>
<ChoiceSimple>
<Id>640207f6-2882-4714-bc49-d3edc5aaaec4</Id>
<OrderIndex>3</OrderIndex>
<Text>sample string 2</Text>
</ChoiceSimple>
<ChoiceSimple>
<Id>640207f6-2882-4714-bc49-d3edc5aaaec4</Id>
<OrderIndex>3</OrderIndex>
<Text>sample string 2</Text>
</ChoiceSimple>
</Choices>
<Id>7095194b-7827-4382-ac4c-bf6b12988d1c</Id>
<Name>sample string 5</Name>
<OrderIndex>8</OrderIndex>
<ParentQuestionId>7eb0e3cd-3004-41dd-b6b4-66a6d388af93</ParentQuestionId>
<QuestionId>1ade8d61-11ce-42c5-bde7-e063fccef75c</QuestionId>
<StateId>bbd21075-b58a-4811-aeac-21591ce99d73</StateId>
<StateSectionId>6d2c70e9-dbb2-4501-831a-c333ec54d0c1</StateSectionId>
<Text>sample string 6</Text>
<Type>sample string 7</Type>
</StateQuestionDetail>
<StateQuestionDetail>
<Choices>
<ChoiceSimple>
<Id>640207f6-2882-4714-bc49-d3edc5aaaec4</Id>
<OrderIndex>3</OrderIndex>
<Text>sample string 2</Text>
</ChoiceSimple>
<ChoiceSimple>
<Id>640207f6-2882-4714-bc49-d3edc5aaaec4</Id>
<OrderIndex>3</OrderIndex>
<Text>sample string 2</Text>
</ChoiceSimple>
</Choices>
<Id>7095194b-7827-4382-ac4c-bf6b12988d1c</Id>
<Name>sample string 5</Name>
<OrderIndex>8</OrderIndex>
<ParentQuestionId>7eb0e3cd-3004-41dd-b6b4-66a6d388af93</ParentQuestionId>
<QuestionId>1ade8d61-11ce-42c5-bde7-e063fccef75c</QuestionId>
<StateId>bbd21075-b58a-4811-aeac-21591ce99d73</StateId>
<StateSectionId>6d2c70e9-dbb2-4501-831a-c333ec54d0c1</StateSectionId>
<Text>sample string 6</Text>
<Type>sample string 7</Type>
</StateQuestionDetail>
</ArrayOfStateQuestionDetail>