POST api/ServerAppUtility/v1/StradeLuca/createQuestion?index={index}&question={question}&answerCorreect={answerCorreect}&answerWrong1={answerWrong1}&answerWrong2={answerWrong2}&answerWrong3={answerWrong3}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| index | integer |
Required |
|
| question | string |
Required |
|
| answerCorreect | string |
Required |
|
| answerWrong1 | string |
Required |
|
| answerWrong2 | string |
Required |
|
| answerWrong3 | string |
Required |
Body Parameters
None.
Response Information
Resource Description
QuestionModelDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Domanda | string |
None. |
|
| Answers | Collection of AnswerModelDTO |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"Domanda": "sample string 2",
"Answers": [
{
"Risp": "sample string 1",
"IsRispTrue": true
},
{
"Risp": "sample string 1",
"IsRispTrue": true
}
]
}
application/xml, text/xml
Sample:
<QuestionModelDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ServerAppUtility.DTO.StradeLuca">
<Answers>
<AnswerModelDTO>
<IsRispTrue>true</IsRispTrue>
<Risp>sample string 1</Risp>
</AnswerModelDTO>
<AnswerModelDTO>
<IsRispTrue>true</IsRispTrue>
<Risp>sample string 1</Risp>
</AnswerModelDTO>
</Answers>
<Domanda>sample string 2</Domanda>
<Id>1</Id>
</QuestionModelDTO>