POST api/InserirPesquisa

Request Information

URI Parameters

None.

Body Parameters

PesquisaSample
NameDescriptionTypeAdditional information
ID

integer

None.

Titulo

string

None.

Respondida

boolean

None.

Respostas

Collection of RespostaSample

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Titulo": "sample string 2",
  "Respondida": true,
  "Respostas": [
    {
      "ID": 1,
      "Titulo": "sample string 2",
      "PesquisaID": 3,
      "Quantidade": 4,
      "Percentual": 5.1,
      "Respondida": true
    },
    {
      "ID": 1,
      "Titulo": "sample string 2",
      "PesquisaID": 3,
      "Quantidade": 4,
      "Percentual": 5.1,
      "Respondida": true
    }
  ]
}

application/xml, text/xml

Sample:
<PesquisaSample xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ChatFidelity.DTO">
  <ID>1</ID>
  <Respondida>true</Respondida>
  <Respostas>
    <RespostaSample>
      <ID>1</ID>
      <Percentual>5.1</Percentual>
      <PesquisaID>3</PesquisaID>
      <Quantidade>4</Quantidade>
      <Respondida>true</Respondida>
      <Titulo>sample string 2</Titulo>
    </RespostaSample>
    <RespostaSample>
      <ID>1</ID>
      <Percentual>5.1</Percentual>
      <PesquisaID>3</PesquisaID>
      <Quantidade>4</Quantidade>
      <Respondida>true</Respondida>
      <Titulo>sample string 2</Titulo>
    </RespostaSample>
  </Respostas>
  <Titulo>sample string 2</Titulo>
</PesquisaSample>

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 'PesquisaSample'.

Response Information

Resource Description

None.