GET api/General/Answers?key={key}&id={id}&mode={mode}

پاسخ‌های دریافت شده در پرسشنامه را برمی‌گرداند.

اطلاعات درخواست

پارامترهای URI

نامتوضیحاتنوعاطلاعات بیشتر
key

کلید اختصاصی شما

string

Required

id

ID پرسشنامه

integer

Required

mode

روش دریافت گزارش. مقادیر مجاز برای این پارامتر: 0: دریافت متن گزینه‌های انتخاب شده 1: دریافت شماره‌ی گزینه‌های انتخاب شده 2: دریافت وزن گزینه‌های انتخاب شده

integer

Required

پارامترهای بدنه‌ی درخواست

هیچ پارامتری وجود ندارد


اطلاعات پاسخ

مقدار برگشتی

مجموعه‌ای از پاسخ‌های داده شده به پرسشنامه

Collection of Respondent
نامتوضیحاتنوعاطلاعات بیشتر
RespondentID

شناسه‌ی پاسخ‌دهنده

integer

AnswerTime

زمان پاسخگویی

date

Answers

مجموعه پاسخ‌هایی که به سؤالات داده است

Collection of AnswerOfQuestion

BasicInformations

اطلاعات اولیه‌ی ارائه شده

Collection of RespondentInfo


قالب‌های پاسخ

application/json, text/json

نمونه:
[
    {
        "RespondentID": 4994,
        "AnswerTime": "2016-05-05T16:40:42.347",
        "Answers": [
            {
                "QuestionNumber": "1.1",
                "AnswerItems": [
                    {
                        "SelectedOption": "Text of the first option",
                        "AnswerText": ""
                    },
                    {
                        "SelectedOption": "Text of the third option",
                        "AnswerText": "Answer text entered by respondent in option 3"
                    }
                ]
            },
            {
                "QuestionNumber": "1.2",
                "AnswerItems": [
                    {
                        "SelectedOption": "",
                        "AnswerText": "Answer to a text question"
                    }
                ]
            }
        ],
        "BasicInformations": [
            {
                "Title": "سن",
                "Answer": "25"
            },
            {
                "Title": "Email",
                "Answer": "[email protected]"
            },
            {
                "Title": "Name",
                "Answer": "Name of respondent #1"
            }
        ]
    },
    {
        "RespondentID": 4995,
        "AnswerTime": "2016-05-05T16:40:42.433",
        "Answers": [
            {
                "QuestionNumber": "1.1",
                "AnswerItems": [
                    {
                        "SelectedOption": "",
                        "AnswerText": ""
                    }
                ]
            },
            {
                "QuestionNumber": "1.2",
                "AnswerItems": [
                    {
                        "SelectedOption": "",
                        "AnswerText": "This is answer of question 1.2 and this respondent did not answer the question 1.1"
                    }
                ]
            }
        ],
        "BasicInformations": [
            {
                "Title": "سن",
                "Answer": "45"
            },
            {
                "Title": "Email",
                "Answer": "[email protected]"
            },
            {
                "Title": "Name",
                "Answer": "Name of respondent #2"
            }
        ]
    }
]

application/xml, text/xml

نمونه:
<ArrayOfRespondent xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigiSurvey.api.Models">
    <Respondent>
        <AnswerTime>2016-05-05T16:40:42.347</AnswerTime>
        <Answers>
            <AnswerOfQuestion>
                <AnswerItems>
                    <AnswerItem>
                        <AnswerText>
                        </AnswerText>
                        <SelectedOption>Text of the first option</SelectedOption>
                    </AnswerItem>
                    <AnswerItem>
                        <AnswerText>Answer text entered by respondent in option 3</AnswerText>
                        <SelectedOption>Text of the third option</SelectedOption>
                    </AnswerItem>
                </AnswerItems>
                <QuestionNumber>1.1</QuestionNumber>
            </AnswerOfQuestion>
            <AnswerOfQuestion>
                <AnswerItems>
                    <AnswerItem>
                        <AnswerText>Answer to a text question</AnswerText>
                        <SelectedOption>
                        </SelectedOption>
                    </AnswerItem>
                </AnswerItems>
                <QuestionNumber>1.2</QuestionNumber>
            </AnswerOfQuestion>
        </Answers>
        <BasicInformations>
            <RespondentInfo>
                <Answer>25</Answer>
                <Title>سن</Title>
            </RespondentInfo>
            <RespondentInfo>
                <Answer>[email protected]</Answer>
                <Title>Email</Title>
            </RespondentInfo>
            <RespondentInfo>
                <Answer>Name of respondent #1</Answer>
                <Title>Name</Title>
            </RespondentInfo>
        </BasicInformations>
        <RespondentID>4994</RespondentID>
    </Respondent>
    <Respondent>
        <AnswerTime>2016-05-05T16:40:42.433</AnswerTime>
        <Answers>
            <AnswerOfQuestion>
                <AnswerItems>
                    <AnswerItem>
                        <AnswerText>
                        </AnswerText>
                        <SelectedOption>
                        </SelectedOption>
                    </AnswerItem>
                </AnswerItems>
                <QuestionNumber>1.1</QuestionNumber>
            </AnswerOfQuestion>
            <AnswerOfQuestion>
                <AnswerItems>
                    <AnswerItem>
                        <AnswerText>This is answer of question 1.2 and this respondent did not answer the question 1.1</AnswerText>
                        <SelectedOption>
                        </SelectedOption>
                    </AnswerItem>
                </AnswerItems>
                <QuestionNumber>1.2</QuestionNumber>
            </AnswerOfQuestion>
        </Answers>
        <BasicInformations>
            <RespondentInfo>
                <Answer>45</Answer>
                <Title>سن</Title>
            </RespondentInfo>
            <RespondentInfo>
                <Answer>[email protected]</Answer>
                <Title>Email</Title>
            </RespondentInfo>
            <RespondentInfo>
                <Answer>Name of respondent #2</Answer>
                <Title>Name</Title>
            </RespondentInfo>
        </BasicInformations>
        <RespondentID>4995</RespondentID>
    </Respondent>
</ArrayOfRespondent>