POST api/Deputados

Request Information

URI Parameters

None.

Body Parameters

Deputado
NameDescriptionTypeAdditional information
Foto

string

None.

Email

string

None.

Filiacao

string

None.

Telefone

string

None.

NomeCivil

string

None.

Descricao

string

None.

Nascimento

date

None.

NomeParlamentar

string

None.

MidiasSociais

Collection of string

None.

ID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Foto": "sample string 1",
  "Email": "sample string 2",
  "Filiacao": "sample string 3",
  "Telefone": "sample string 4",
  "NomeCivil": "sample string 5",
  "Descricao": "sample string 6",
  "Nascimento": "2019-02-20T14:47:36.9082907-04:00",
  "NomeParlamentar": "sample string 8",
  "MidiasSociais": [
    "sample string 1",
    "sample string 2"
  ],
  "ID": 9
}

application/xml, text/xml

Sample:
<Deputado xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ChatFidelity.Models">
  <ID>9</ID>
  <Descricao>sample string 6</Descricao>
  <Email>sample string 2</Email>
  <Filiacao>sample string 3</Filiacao>
  <Foto>sample string 1</Foto>
  <MidiasSociais xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </MidiasSociais>
  <Nascimento>2019-02-20T14:47:36.9082907-04:00</Nascimento>
  <NomeCivil>sample string 5</NomeCivil>
  <NomeParlamentar>sample string 8</NomeParlamentar>
  <Telefone>sample string 4</Telefone>
</Deputado>

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

Response Information

Resource Description

None.