GET api/assuntos?indApenasAtivos={indApenasAtivos}&idOuvidoria={idOuvidoria}&verificarEstruturaAExibir={verificarEstruturaAExibir}&idManifestacao={idManifestacao}
Consulta e listagem de assuntos
Request Information
URI Parameters
| Name | Description | Type | Additional 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 |
| verificarEstruturaAExibir |
se true, verifica na tabela Parametro Sistema qual estrutura de assuntos devemos listar (se a nova estrutura ou a antiga), valor default=false |
boolean |
Default value is False |
| idManifestacao | integer |
Default value is 0 |
Body Parameters
None.
Response Information
Resource Description
Lista de AssuntoListagemDTO
Collection of AssuntoListagemDTO| Name | Description | Type | Additional 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. |
| IndFormEspecifico |
Indicação de formulário específico para o assunto |
boolean |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"IndAtivo": true,
"IdAssunto": 2,
"DescAssunto": "sample string 3",
"IndFormEspecifico": true
},
{
"IndAtivo": true,
"IdAssunto": 2,
"DescAssunto": "sample string 3",
"IndFormEspecifico": true
}
]
text/html
Sample:
[{"IndAtivo":true,"IdAssunto":2,"DescAssunto":"sample string 3","IndFormEspecifico":true},{"IndAtivo":true,"IdAssunto":2,"DescAssunto":"sample string 3","IndFormEspecifico":true}]
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>
<IndFormEspecifico>true</IndFormEspecifico>
<IndAtivo>true</IndAtivo>
</AssuntoListagemDTO>
<AssuntoListagemDTO>
<DescAssunto>sample string 3</DescAssunto>
<IdAssunto>2</IdAssunto>
<IndFormEspecifico>true</IndFormEspecifico>
<IndAtivo>true</IndAtivo>
</AssuntoListagemDTO>
</ArrayOfAssuntoListagemDTO>