POST api/ComentarNoticia

Request Information

URI Parameters

None.

Body Parameters

ComentarioNoticia
NameDescriptionTypeAdditional information
Comentario

string

None.

UserId

integer

None.

ALNoticiaID

integer

None.

DataComentario

date

None.

ID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Comentario": "sample string 1",
  "UserId": 2,
  "ALNoticiaID": 3,
  "DataComentario": "2019-05-19T21:36:15.3527634-04:00",
  "ID": 5
}

application/xml, text/xml

Sample:
<ComentarioNoticia xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ChatFidelity.Models">
  <ID>5</ID>
  <ALNoticiaID>3</ALNoticiaID>
  <Comentario>sample string 1</Comentario>
  <DataComentario>2019-05-19T21:36:15.3527634-04:00</DataComentario>
  <UserId>2</UserId>
</ComentarioNoticia>

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

Response Information

Resource Description

ComentarioNoticia
NameDescriptionTypeAdditional information
Comentario

string

None.

UserId

integer

None.

ALNoticiaID

integer

None.

DataComentario

date

None.

ID

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Comentario": "sample string 1",
  "UserId": 2,
  "ALNoticiaID": 3,
  "DataComentario": "2019-05-19T21:36:15.3567627-04:00",
  "ID": 5
}

application/xml, text/xml

Sample:
<ComentarioNoticia xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ChatFidelity.Models">
  <ID>5</ID>
  <ALNoticiaID>3</ALNoticiaID>
  <Comentario>sample string 1</Comentario>
  <DataComentario>2019-05-19T21:36:15.3567627-04:00</DataComentario>
  <UserId>2</UserId>
</ComentarioNoticia>