POST api/Questionnaire/Submit
Request Information
URI Parameters
None.
Body Parameters
AnswerSubmission| Name | Description | Type | Additional information |
|---|---|---|---|
| UserName | string |
None. |
|
| QuestionnaireKey | integer |
None. |
|
| Answers | Collection of UserAnswer |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserName": "sample string 1",
"QuestionnaireKey": 2,
"Answers": [
{
"QuestionKey": 1,
"OptionKeys": [
1,
2
]
},
{
"QuestionKey": 1,
"OptionKeys": [
1,
2
]
}
]
}
application/xml, text/xml
Sample:
<AnswerSubmission xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DY.Entity.ViewModel">
<Answers>
<UserAnswer>
<OptionKeys xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:int>1</d4p1:int>
<d4p1:int>2</d4p1:int>
</OptionKeys>
<QuestionKey>1</QuestionKey>
</UserAnswer>
<UserAnswer>
<OptionKeys xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:int>1</d4p1:int>
<d4p1:int>2</d4p1:int>
</OptionKeys>
<QuestionKey>1</QuestionKey>
</UserAnswer>
</Answers>
<QuestionnaireKey>2</QuestionnaireKey>
<UserName>sample string 1</UserName>
</AnswerSubmission>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
MessageModelOfInt32| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | integer |
None. |
|
| Success | boolean |
None. |
|
| Msg | string |
None. |
|
| Response | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Status": 200,
"Success": true,
"Msg": "sample string 3",
"Response": 4
}
application/xml, text/xml
Sample:
<MessageModelOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DY.Entity"> <Msg>sample string 3</Msg> <Response>4</Response> <Status>200</Status> <Success>true</Success> </MessageModelOfint>