GET api/Noticias?filtro={filtro}&lastItem={lastItem}&itensPagina={itensPagina}&userID={userID}&translateTo={translateTo}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
filtro

string

Default value is

lastItem

integer

Default value is 0

itensPagina

integer

Default value is 20

userID

integer

Default value is 0

translateTo

string

Default value is

Body Parameters

None.

Response Information

Resource Description

ListaPagesOfNoticia
NameDescriptionTypeAdditional information
Lista

Collection of Noticia

None.

Pagination

Paginacao

None.

Response Formats

application/json, text/json

Sample:
{
  "Lista": [
    {
      "IdAL": 1,
      "Titulo": "sample string 2",
      "Descricao": "sample string 3",
      "Data": "2019-10-17T10:00:48.3113108-04:00",
      "UrlImagem": "sample string 5",
      "IsUserCurtindo": true,
      "IsUserNaoCurtindo": true,
      "TotalCurtir": 8,
      "TotalNaoCurtir": 9,
      "TotalComentario": 10,
      "Comentarios": [
        {
          "Comentario": "sample string 1",
          "UserId": 2,
          "ALNoticiaID": 3,
          "DataComentario": "2019-10-17T10:00:48.3122854-04:00",
          "ID": 5
        },
        {
          "Comentario": "sample string 1",
          "UserId": 2,
          "ALNoticiaID": 3,
          "DataComentario": "2019-10-17T10:00:48.3122854-04:00",
          "ID": 5
        }
      ]
    },
    {
      "IdAL": 1,
      "Titulo": "sample string 2",
      "Descricao": "sample string 3",
      "Data": "2019-10-17T10:00:48.3113108-04:00",
      "UrlImagem": "sample string 5",
      "IsUserCurtindo": true,
      "IsUserNaoCurtindo": true,
      "TotalCurtir": 8,
      "TotalNaoCurtir": 9,
      "TotalComentario": 10,
      "Comentarios": [
        {
          "Comentario": "sample string 1",
          "UserId": 2,
          "ALNoticiaID": 3,
          "DataComentario": "2019-10-17T10:00:48.3122854-04:00",
          "ID": 5
        },
        {
          "Comentario": "sample string 1",
          "UserId": 2,
          "ALNoticiaID": 3,
          "DataComentario": "2019-10-17T10:00:48.3122854-04:00",
          "ID": 5
        }
      ]
    }
  ],
  "Pagination": {
    "IsPaginate": true,
    "TotalRegistro": 2,
    "Limite": 3,
    "Paginas": 4,
    "LastID": 6
  }
}

application/xml, text/xml

Sample:
<ListaPagesOfNoticiaugbfIyOt xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ChatFidelity.DTO">
  <Lista>
    <Noticia>
      <Comentarios xmlns:d4p1="http://schemas.datacontract.org/2004/07/ChatFidelity.Models">
        <d4p1:ComentarioNoticia>
          <d4p1:ID>5</d4p1:ID>
          <d4p1:ALNoticiaID>3</d4p1:ALNoticiaID>
          <d4p1:Comentario>sample string 1</d4p1:Comentario>
          <d4p1:DataComentario>2019-10-17T10:00:48.3122854-04:00</d4p1:DataComentario>
          <d4p1:UserId>2</d4p1:UserId>
        </d4p1:ComentarioNoticia>
        <d4p1:ComentarioNoticia>
          <d4p1:ID>5</d4p1:ID>
          <d4p1:ALNoticiaID>3</d4p1:ALNoticiaID>
          <d4p1:Comentario>sample string 1</d4p1:Comentario>
          <d4p1:DataComentario>2019-10-17T10:00:48.3122854-04:00</d4p1:DataComentario>
          <d4p1:UserId>2</d4p1:UserId>
        </d4p1:ComentarioNoticia>
      </Comentarios>
      <Data>2019-10-17T10:00:48.3113108-04:00</Data>
      <Descricao>sample string 3</Descricao>
      <IdAL>1</IdAL>
      <IsUserCurtindo>true</IsUserCurtindo>
      <IsUserNaoCurtindo>true</IsUserNaoCurtindo>
      <Titulo>sample string 2</Titulo>
      <TotalComentario>10</TotalComentario>
      <TotalCurtir>8</TotalCurtir>
      <TotalNaoCurtir>9</TotalNaoCurtir>
      <UrlImagem>sample string 5</UrlImagem>
    </Noticia>
    <Noticia>
      <Comentarios xmlns:d4p1="http://schemas.datacontract.org/2004/07/ChatFidelity.Models">
        <d4p1:ComentarioNoticia>
          <d4p1:ID>5</d4p1:ID>
          <d4p1:ALNoticiaID>3</d4p1:ALNoticiaID>
          <d4p1:Comentario>sample string 1</d4p1:Comentario>
          <d4p1:DataComentario>2019-10-17T10:00:48.3122854-04:00</d4p1:DataComentario>
          <d4p1:UserId>2</d4p1:UserId>
        </d4p1:ComentarioNoticia>
        <d4p1:ComentarioNoticia>
          <d4p1:ID>5</d4p1:ID>
          <d4p1:ALNoticiaID>3</d4p1:ALNoticiaID>
          <d4p1:Comentario>sample string 1</d4p1:Comentario>
          <d4p1:DataComentario>2019-10-17T10:00:48.3122854-04:00</d4p1:DataComentario>
          <d4p1:UserId>2</d4p1:UserId>
        </d4p1:ComentarioNoticia>
      </Comentarios>
      <Data>2019-10-17T10:00:48.3113108-04:00</Data>
      <Descricao>sample string 3</Descricao>
      <IdAL>1</IdAL>
      <IsUserCurtindo>true</IsUserCurtindo>
      <IsUserNaoCurtindo>true</IsUserNaoCurtindo>
      <Titulo>sample string 2</Titulo>
      <TotalComentario>10</TotalComentario>
      <TotalCurtir>8</TotalCurtir>
      <TotalNaoCurtir>9</TotalNaoCurtir>
      <UrlImagem>sample string 5</UrlImagem>
    </Noticia>
  </Lista>
  <Pagination>
    <IsPaginate>true</IsPaginate>
    <LastID>6</LastID>
    <Limite>3</Limite>
    <PaginaAtual>5</PaginaAtual>
    <Paginas>4</Paginas>
    <TotalRegistro>2</TotalRegistro>
  </Pagination>
</ListaPagesOfNoticiaugbfIyOt>