GET api/assuntos?indApenasAtivos={indApenasAtivos}&idOuvidoria={idOuvidoria}

Consulta e listagem de assuntos

Request Information

URI Parameters

NameDescriptionTypeAdditional information
indApenasAtivos

se true, traz apenas os assuntos ativos atualmente, valor default=false

boolean

Default value is False

idOuvidoria

se preenchido, traz os assuntos favoritos do órgão, senão traz todos assuntos

integer

Default value is 0

Body Parameters

None.

Response Information

Resource Description

Lista de AssuntoListagemDTO

Collection of AssuntoListagemDTO
NameDescriptionTypeAdditional information
IndAtivo

Indica se o assunto está ativo ou inativo

boolean

None.

IdAssunto

Identificador do assunto

integer

None.

DescAssunto

Descrição do assunto.

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "IndAtivo": true,
    "IdAssunto": 2,
    "DescAssunto": "sample string 3"
  },
  {
    "IndAtivo": true,
    "IdAssunto": 2,
    "DescAssunto": "sample string 3"
  }
]

text/html

Sample:
[{"IndAtivo":true,"IdAssunto":2,"DescAssunto":"sample string 3"},{"IndAtivo":true,"IdAssunto":2,"DescAssunto":"sample string 3"}]

application/xml, text/xml

Sample:
<ArrayOfAssuntoListagemDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ouvidorias.Api.Models.DTO">
  <AssuntoListagemDTO>
    <DescAssunto>sample string 3</DescAssunto>
    <IdAssunto>2</IdAssunto>
    <IndAtivo>true</IndAtivo>
  </AssuntoListagemDTO>
  <AssuntoListagemDTO>
    <DescAssunto>sample string 3</DescAssunto>
    <IdAssunto>2</IdAssunto>
    <IndAtivo>true</IndAtivo>
  </AssuntoListagemDTO>
</ArrayOfAssuntoListagemDTO>