POST api/questionario/send/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
QuestionarioViewModel_API.Models.Questionario| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Title | string |
None. |
|
| Perguntas | Collection of PerguntaViewModel_API.Models.Questionario |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Title": "sample string 2",
"Perguntas": [
{
"Id": 1,
"Pergunta": "sample string 2",
"TipoPergunta": 3,
"IsSimplesEscolha": true,
"IsSimplesMultiplaEscolha": true,
"IsDescritiva": true,
"OpcaoResposta": [
{
"Id": 1,
"Name": "sample string 2",
"IsSelected": true
},
{
"Id": 1,
"Name": "sample string 2",
"IsSelected": true
}
]
},
{
"Id": 1,
"Pergunta": "sample string 2",
"TipoPergunta": 3,
"IsSimplesEscolha": true,
"IsSimplesMultiplaEscolha": true,
"IsDescritiva": true,
"OpcaoResposta": [
{
"Id": 1,
"Name": "sample string 2",
"IsSelected": true
},
{
"Id": 1,
"Name": "sample string 2",
"IsSelected": true
}
]
}
]
}
application/xml, text/xml
Sample:
<QuestionarioViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.Questionario">
<Id>1</Id>
<Perguntas>
<PerguntaViewModel>
<Id>1</Id>
<IsDescritiva>true</IsDescritiva>
<IsSimplesEscolha>true</IsSimplesEscolha>
<IsSimplesMultiplaEscolha>true</IsSimplesMultiplaEscolha>
<OpcaoResposta>
<OpcaoRespostaPerguntaViewModel>
<Id>1</Id>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
</OpcaoRespostaPerguntaViewModel>
<OpcaoRespostaPerguntaViewModel>
<Id>1</Id>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
</OpcaoRespostaPerguntaViewModel>
</OpcaoResposta>
<Pergunta>sample string 2</Pergunta>
<TipoPergunta>3</TipoPergunta>
</PerguntaViewModel>
<PerguntaViewModel>
<Id>1</Id>
<IsDescritiva>true</IsDescritiva>
<IsSimplesEscolha>true</IsSimplesEscolha>
<IsSimplesMultiplaEscolha>true</IsSimplesMultiplaEscolha>
<OpcaoResposta>
<OpcaoRespostaPerguntaViewModel>
<Id>1</Id>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
</OpcaoRespostaPerguntaViewModel>
<OpcaoRespostaPerguntaViewModel>
<Id>1</Id>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
</OpcaoRespostaPerguntaViewModel>
</OpcaoResposta>
<Pergunta>sample string 2</Pergunta>
<TipoPergunta>3</TipoPergunta>
</PerguntaViewModel>
</Perguntas>
<Title>sample string 2</Title>
</QuestionarioViewModel>
application/x-www-form-urlencoded
Sample:
Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'QuestionarioViewModel'.
Response Information
Resource Description
IHttpActionResult_System.Web.HttpNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.