Commit 1c17321f authored by ns17's avatar ns17

Adding description of vulnerabilidades

parent 2431ff39
......@@ -34,6 +34,10 @@ tags:
description: "Contains queries made with data from CadÚnico"
externalDocs:
url: https://aplicacoes.mds.gov.br/sagi/portal/index.php?grupo=212
- name: SIM
description: "Contains queries made with data from SIM"
externalDocs:
url: https://https://bigdata-metadados.icict.fiocruz.br/dataset/sistema-de-informacoes-de-mortalidade-sim
- name: EXTRA
description: "Contains data from auxiliary extra routes"
externalDocs:
......@@ -1052,7 +1056,152 @@ paths:
$ref: '#/components/schemas/vacancy'
'404':
description: no data found
/taxa_homicidios:
get:
summary: Return the number of homicides per 100 thousand inhabitants in 2016. This route uses the SIM database listed above.
tags:
- SIM
parameters:
- name: dims
in: query
description: Group data using a metric parameter
allowReserved: true
required: false
explode: false
style: form
example: year,raca_cor
schema:
type: array
items:
type: string
enum:
- uf
- raca_cor
- name: filter
in: query
description: Filter data
allowReserved: true
required: false
explode: false
style: form
example: raca_cor:["Parda","Preta"],uf:"PR"
schema:
type: array
items:
type: object
properties:
uf:
items:
type: "string"
enum: ["AC", "AL", "AP", "AM", "BA", "CE", "DF", "ES", "GO", "MA", "MT", "MS", "MG", "PA", "PB", "PR", "PE", "PI", "RJ", "RN", "RS", "RO", "RR", "SC", "SP", "SE", "TO"]
raca_cor:
type: "array"
items:
type: "string"
enum: ['Amarela', 'Branca', 'Ignorado', 'Indígena', 'Parda', 'Preta']
/sim:
get:
summary: Return the number of people from the SIM data obtained from DATASUS.
tags:
- SIM
parameters:
- name: dims
in: query
description: Group data using a metric parameter
allowReserved: true
required: false
explode: false
style: form
example: year,def_raca_cor
schema:
type: array
items:
type: string
enum:
- year
- uf
- def_raca_cor
- raca_cor
- def_tipo_obito
- tipo_obito
- min_idade
- max_idade
- sexo
- def_sexo
- name: filter
in: query
description: Filter data
allowReserved: true
required: false
explode: false
style: form
example: tipo_obito:["2","3"],min_idade:"15"
schema:
type: array
items:
type: object
properties:
year:
type: "array"
items:
type: "string"
enum: ['1996', '1997', '1998', '1999', '2000', '2001', '2002', '2003', '2004', '2005', '2006', '2007', '2008', '2009', '2010', '2011', '2012', '2013', '2014', '2015', '2016']
uf:
items:
type: "string"
enum: ["AC", "AL", "AP", "AM", "BA", "CE", "DF", "ES", "GO", "MA", "MT", "MS", "MG", "PA", "PB", "PR", "PE", "PI", "RJ", "RN", "RS", "RO", "RR", "SC", "SP", "SE", "TO"]
def_raca_cor:
type: "array"
items:
type: "string"
enum: ['Amarela', 'Branca', 'Ignorado', 'Indígena', 'Parda', 'Preta']
raca_cor:
type: "array"
items:
type: "string"
enum: ['1', '2', '3', '4', '5', '9']
def_tipo_obito:
type: "array"
items:
type: "string"
enum: ['Acidente', 'Homicídio', 'Ignorado', 'Outros', 'Suicídio']
tipo_obito:
type: "array"
items:
type: "string"
enum: ['1', '2', '3', '4', '9']
min_idade:
type: "array"
items:
type: "number"
minimum: 0
maximum: 128
max_idade:
type: "array"
items:
type: "number"
minimum: 0
maximum: 128
sexo:
type: "array"
items:
type: "string"
enum: ['0', '1', '2']
def_sexo:
type: "array"
items:
type: "string"
enum: ['Feminino', 'Ignorado', 'Masculino']
responses:
'200':
description: successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/PnadReturn'
'404':
description: no data found
/pnad:
get:
summary: Return the number of people obtained by IBGE in the PNAD research. This route uses the PNAD database listed above
......@@ -1853,6 +2002,7 @@ paths:
- trabalhou
- vinculo
- rendimento_faixa
- rendimento_bruto
- uf
- name: filter
in: query
......@@ -1892,6 +2042,12 @@ paths:
items:
type: "string"
enum: ['1','2','3','4','5','6','7','8','null']
rendimento_bruto:
type: "array"
items:
type: "number"
minimum: 0
maximum: 100000
uf:
type: "array"
enum: ['AC', 'AL', 'AP', 'AM', 'BA', 'CE', 'DF', 'ES', 'GO', 'MA', 'MT', 'MS', 'MG', 'PA', 'PB', 'PR', 'PE', 'PI', 'RJ', 'RN', 'RS', 'RO', 'RR', 'SC', 'SP', 'SE', 'TO']
......@@ -2767,6 +2923,8 @@ components:
type: "string"
rendimento_faixa:
type: "string"
rendimento_bruto:
type: "number"
uf:
type: "string"
......@@ -2800,6 +2958,35 @@ components:
cod_curso_frequentou_pessoa_memb:
type: "string"
SIM:
type: object
required: ['total']
description: |
This model represents the return possibilities in SIM queries
properties:
total:
type: "number"
year:
type: "number"
uf:
type: "string"
def_raca_cor:
type: "string"
raca_cor:
type: "number"
def_tipo_obito:
type: "string"
tipo_obito:
type: "number"
min_idade:
type: "number"
max_idade:
type: "number"
sexo:
type: "number"
def_sexo:
type: "string"
CiganosCulture:
type: object
required: ['total']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment