Commit 2431ff39 authored by ns17's avatar ns17

Adding description of youth education and jobs

parent bc2f3271
......@@ -1732,7 +1732,179 @@ paths:
# $ref: '#/components/schemas/CadUnicoReturn'
# '404':
# description: no data found
/youth_education:
get:
summary: Returns educational information related to the "living youth plan". This route uses the PNAD.
tags:
- PNAD
parameters:
- name: dims
in: query
description: Group data using a metric parameter
allowReserved: true
required: false
explode: false
style: form
example: year,cor_raca
schema:
type: array
items:
type: string
enum:
- year
- cor_raca
- max_level
- age
- in_escola
- frequenta
- uf
- concluiu
- nivel_escola
- name: filter
in: query
description: Filter data
allowReserved: true
required: false
explode: false
style: form
example: cor_raca:["2","4"],year:"2017"
schema:
type: array
items:
type: object
properties:
year:
type: "array"
items:
type: "string"
enum: ['2012', '2013', '2014', '2015', '2016','2017','2018']
ethnic:
type: "array"
items:
type: "string"
enum: ['1','2','3','4','5','9']
max_level:
type: "array"
items:
type: "string"
enum: ['1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','null']
age:
type: "array"
items:
type: "number"
minimum: 0
maximum: 45
in_escola:
type: "array"
items:
type: "string"
enum: ['1','2',null']
frequenta:
type: "array"
items:
type: "string"
enum: ['1','2',null']
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']
concluiu:
type: "array"
items:
type: "string"
enum: ['1','2',null']
nivel_escola:
type: "array"
items:
type: "string"
enum: ['2','3','4','5','6','7','8','9','10','11',null']
responses:
'200':
description: successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/YouthEducation'
'404':
description: no data found
/youth_jobs:
get:
summary: Returns jobs information related to the "living youth plan". This route uses the PNAD data.
tags:
- PNAD
parameters:
- name: dims
in: query
description: Group data using a metric parameter
allowReserved: true
required: false
explode: false
style: form
example: year,cor_raca
schema:
type: array
items:
type: string
enum:
- year
- cor_raca
- trabalhou
- vinculo
- rendimento_faixa
- uf
- name: filter
in: query
description: Filter data
allowReserved: true
required: false
explode: false
style: form
example: cor_raca:["2","4"],year:"2017"
schema:
type: array
items:
type: object
properties:
year:
type: "array"
items:
type: "string"
enum: ['2012', '2013', '2014', '2015', '2016','2017','2018']
cor_raca:
type: "array"
items:
type: "string"
enum: ['1','2','3','4','5','9']
trabalhou:
type: "array"
items:
type: "string"
enum: ['1','2']
vinculo:
type: "array"
items:
type: "string"
enum: ['1','2','3','4','5','6','7','null']
rendimento_faixa:
type: "array"
items:
type: "string"
enum: ['1','2','3','4','5','6','7','8','null']
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']
responses:
'200':
description: successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/YouthEducation'
'404':
description: no data found
/ciganos_culture:
get:
summary: Return the type of house and location of the houses that belongs to 'ciganos communities' obtained by CadÚnico. This route uses the IBGE data listed above
......@@ -2550,6 +2722,54 @@ components:
ano_pesquisa:
type: "number"
YouthEducation:
type: object
required: ['total']
description: |
This model represents the return possibilities in youth_education queries
properties:
total:
type: "number"
ano_pesquisa:
type: "number"
cor_raca:
type: "string"
max_level:
type: "string"
year:
type: "number"
in_escola:
type: "string"
frequenta:
type: "string"
uf:
type: "string"
concluiu:
type: "string"
nivel_escola:
type: "string"
YouthJobs:
type: object
required: ['total']
description: |
This model represents the return possibilities in youth_jobs queries
properties:
total:
type: "number"
year:
type: "number"
cor_raca:
type: "string"
trabalhou:
type: "string"
vinculo:
type: "string"
rendimento_faixa:
type: "string"
uf:
type: "string"
CiganosSustentability:
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