POST api/ComentarProposicao

Request Information

URI Parameters

None.

Body Parameters

ComentarioProposicao
NameDescriptionTypeAdditional information
Comentario

string

None.

UserId

integer

None.

ALProposicaoID

integer

None.

DataComentario

date

None.

ID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Comentario": "sample string 1",
  "UserId": 2,
  "ALProposicaoID": 3,
  "DataComentario": "2019-10-17T10:00:12.2737775-04:00",
  "ID": 5
}

application/xml, text/xml

Sample:
<ComentarioProposicao xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ChatFidelity.Models">
  <ID>5</ID>
  <ALProposicaoID>3</ALProposicaoID>
  <Comentario>sample string 1</Comentario>
  <DataComentario>2019-10-17T10:00:12.2737775-04:00</DataComentario>
  <UserId>2</UserId>
</ComentarioProposicao>

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

Response Information

Resource Description

ComentarioProposicao
NameDescriptionTypeAdditional information
Comentario

string

None.

UserId

integer

None.

ALProposicaoID

integer

None.

DataComentario

date

None.

ID

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Comentario": "sample string 1",
  "UserId": 2,
  "ALProposicaoID": 3,
  "DataComentario": "2019-10-17T10:00:12.2737775-04:00",
  "ID": 5
}

application/xml, text/xml

Sample:
<ComentarioProposicao xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ChatFidelity.Models">
  <ID>5</ID>
  <ALProposicaoID>3</ALProposicaoID>
  <Comentario>sample string 1</Comentario>
  <DataComentario>2019-10-17T10:00:12.2737775-04:00</DataComentario>
  <UserId>2</UserId>
</ComentarioProposicao>