POST api/Chat/EnviarMsg

Request Information

URI Parameters

None.

Body Parameters

Mensagens
NameDescriptionTypeAdditional information
Mensagem

string

None.

Tipo

Tipo da mensagem 0 - Texto 1 - Imagem 2 - Documento 3 - Atendida 4 - Não atendida

integer

None.

FileName

string

None.

MatriculaAL

string

None.

DataMsg

date

None.

IsMensagemLida

boolean

None.

Sala

Rooms

None.

Usuario

User

None.

ID

integer

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'ChatFidelity.Models.Rooms'. Path 'Sala.Adm.Salas'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'ChatFidelity.Models.Rooms'. Path 'Sala.Adm.Salas'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: O gráfico de objeto para o tipo 'System.Collections.Generic.List`1[[ChatFidelity.Models.Mensagens, ChatFidelity, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contém ciclos e não pode ser serializado se o controle de referência for desativado.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: O gráfico de objeto para o tipo 'System.Collections.Generic.List`1[[ChatFidelity.Models.Mensagens, ChatFidelity, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contém ciclos e não pode ser serializado se o controle de referência for desativado.

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

Response Information

Resource Description

MensagemSimple
NameDescriptionTypeAdditional information
MsgId

integer

None.

Tipo

integer

None.

FileName

string

None.

UsuarioIntranetId

string

None.

DataMsg

date

None.

Mensagem

string

None.

SalaId

integer

None.

UserId

integer

None.

UserName

string

None.

Response Formats

application/json, text/json

Sample:
{
  "MsgId": 1,
  "Tipo": 2,
  "FileName": "sample string 3",
  "UsuarioIntranetId": "sample string 4",
  "DataMsg": "2019-10-17T10:00:17.4174582-04:00",
  "Mensagem": "sample string 6",
  "SalaId": 7,
  "UserId": 8,
  "UserName": "sample string 9"
}

application/xml, text/xml

Sample:
<MensagemSimple xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ChatFidelity.DTO">
  <DataMsg>2019-10-17T10:00:17.4174582-04:00</DataMsg>
  <FileName>sample string 3</FileName>
  <Mensagem>sample string 6</Mensagem>
  <MsgId>1</MsgId>
  <SalaId>7</SalaId>
  <Tipo>2</Tipo>
  <UserId>8</UserId>
  <UserName>sample string 9</UserName>
  <UsuarioIntranetId>sample string 4</UsuarioIntranetId>
</MensagemSimple>