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": "b70ec8d6-2936-4c67-b32b-3632f37eeef1",
"StateId": "ed722816-b48a-4c03-8e56-e965f19b466d",
"StateSectionId": "1d737fcf-76e6-496e-9ced-82641fb34e3b",
"QuestionId": "889fa089-6031-40c2-87b1-867843860498",
"Name": "sample string 5",
"Text": "sample string 6",
"Type": "sample string 7",
"OrderIndex": 8,
"Choices": [
{
"Id": "1822e2d4-40e6-4aa7-856d-6635b286608f",
"Text": "sample string 2",
"OrderIndex": 3
},
{
"Id": "1822e2d4-40e6-4aa7-856d-6635b286608f",
"Text": "sample string 2",
"OrderIndex": 3
}
],
"ParentQuestionId": "cfb73106-c71c-4bf2-bcca-642056891172"
},
{
"Id": "b70ec8d6-2936-4c67-b32b-3632f37eeef1",
"StateId": "ed722816-b48a-4c03-8e56-e965f19b466d",
"StateSectionId": "1d737fcf-76e6-496e-9ced-82641fb34e3b",
"QuestionId": "889fa089-6031-40c2-87b1-867843860498",
"Name": "sample string 5",
"Text": "sample string 6",
"Type": "sample string 7",
"OrderIndex": 8,
"Choices": [
{
"Id": "1822e2d4-40e6-4aa7-856d-6635b286608f",
"Text": "sample string 2",
"OrderIndex": 3
},
{
"Id": "1822e2d4-40e6-4aa7-856d-6635b286608f",
"Text": "sample string 2",
"OrderIndex": 3
}
],
"ParentQuestionId": "cfb73106-c71c-4bf2-bcca-642056891172"
}
]
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>1822e2d4-40e6-4aa7-856d-6635b286608f</Id>
<OrderIndex>3</OrderIndex>
<Text>sample string 2</Text>
</ChoiceSimple>
<ChoiceSimple>
<Id>1822e2d4-40e6-4aa7-856d-6635b286608f</Id>
<OrderIndex>3</OrderIndex>
<Text>sample string 2</Text>
</ChoiceSimple>
</Choices>
<Id>b70ec8d6-2936-4c67-b32b-3632f37eeef1</Id>
<Name>sample string 5</Name>
<OrderIndex>8</OrderIndex>
<ParentQuestionId>cfb73106-c71c-4bf2-bcca-642056891172</ParentQuestionId>
<QuestionId>889fa089-6031-40c2-87b1-867843860498</QuestionId>
<StateId>ed722816-b48a-4c03-8e56-e965f19b466d</StateId>
<StateSectionId>1d737fcf-76e6-496e-9ced-82641fb34e3b</StateSectionId>
<Text>sample string 6</Text>
<Type>sample string 7</Type>
</StateQuestionDetail>
<StateQuestionDetail>
<Choices>
<ChoiceSimple>
<Id>1822e2d4-40e6-4aa7-856d-6635b286608f</Id>
<OrderIndex>3</OrderIndex>
<Text>sample string 2</Text>
</ChoiceSimple>
<ChoiceSimple>
<Id>1822e2d4-40e6-4aa7-856d-6635b286608f</Id>
<OrderIndex>3</OrderIndex>
<Text>sample string 2</Text>
</ChoiceSimple>
</Choices>
<Id>b70ec8d6-2936-4c67-b32b-3632f37eeef1</Id>
<Name>sample string 5</Name>
<OrderIndex>8</OrderIndex>
<ParentQuestionId>cfb73106-c71c-4bf2-bcca-642056891172</ParentQuestionId>
<QuestionId>889fa089-6031-40c2-87b1-867843860498</QuestionId>
<StateId>ed722816-b48a-4c03-8e56-e965f19b466d</StateId>
<StateSectionId>1d737fcf-76e6-496e-9ced-82641fb34e3b</StateSectionId>
<Text>sample string 6</Text>
<Type>sample string 7</Type>
</StateQuestionDetail>
</ArrayOfStateQuestionDetail>