POST api/Curtir

Request Information

URI Parameters

None.

Body Parameters

Curtir
NameDescriptionTypeAdditional information
IdAL

integer

None.

TipoCurtir

TipoCurtir

None.

UserId

integer

None.

IsNaoCurtir

boolean

None.

ID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "IdAL": 1,
  "TipoCurtir": 1,
  "UserId": 2,
  "IsNaoCurtir": true,
  "ID": 4
}

application/xml, text/xml

Sample:
<Curtir xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ChatFidelity.Models">
  <ID>4</ID>
  <IdAL>1</IdAL>
  <IsNaoCurtir>true</IsNaoCurtir>
  <TipoCurtir>Proposicao</TipoCurtir>
  <UserId>2</UserId>
</Curtir>

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

Response Information

Resource Description

Curtir
NameDescriptionTypeAdditional information
IdAL

integer

None.

TipoCurtir

TipoCurtir

None.

UserId

integer

None.

IsNaoCurtir

boolean

None.

ID

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "IdAL": 1,
  "TipoCurtir": 1,
  "UserId": 2,
  "IsNaoCurtir": true,
  "ID": 4
}

application/xml, text/xml

Sample:
<Curtir xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ChatFidelity.Models">
  <ID>4</ID>
  <IdAL>1</IdAL>
  <IsNaoCurtir>true</IsNaoCurtir>
  <TipoCurtir>Proposicao</TipoCurtir>
  <UserId>2</UserId>
</Curtir>