Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
simcaq-node
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
simcaq
simcaq-node
Commits
39476f3d
Commit
39476f3d
authored
1 year ago
by
Fernando Gbur dos Santos
Browse files
Options
Downloads
Patches
Plain Diff
[ADD] subroutes '/instruction_level' and '/adm_dependency' added
parent
5ec80ec0
No related branches found
No related tags found
3 merge requests
!391
Hom -> Prod
,
!386
Merge development -> homologa
,
!383
FIrst deploy of new route 'new_pnad'
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/libs/routes_v1/newPnad.js
+25
-0
25 additions, 0 deletions
src/libs/routes_v1/newPnad.js
with
25 additions
and
0 deletions
src/libs/routes_v1/newPnad.js
+
25
−
0
View file @
39476f3d
...
@@ -32,6 +32,8 @@ const response = require(`${libs}/middlewares/response`);
...
@@ -32,6 +32,8 @@ const response = require(`${libs}/middlewares/response`);
const
ReqQueryFields
=
require
(
`
${
libs
}
/middlewares/reqQueryFields`
);
const
ReqQueryFields
=
require
(
`
${
libs
}
/middlewares/reqQueryFields`
);
const
id2str
=
require
(
`
${
libs
}
/middlewares/id2str`
);
const
config
=
require
(
`
${
libs
}
/config`
);
const
config
=
require
(
`
${
libs
}
/config`
);
const
cache
=
require
(
'
apicache
'
).
options
({
debug
:
config
.
debug
,
statusCodes
:
{
include
:
[
200
]}
}).
middleware
;
const
cache
=
require
(
'
apicache
'
).
options
({
debug
:
config
.
debug
,
statusCodes
:
{
include
:
[
200
]}
}).
middleware
;
...
@@ -69,6 +71,29 @@ PnadNovoApp.get('/years_of_study', (req, res, next) => {
...
@@ -69,6 +71,29 @@ PnadNovoApp.get('/years_of_study', (req, res, next) => {
next
();
next
();
},
response
(
'
years_of_study
'
));
},
response
(
'
years_of_study
'
));
PnadNovoApp
.
get
(
'
/instruction_level
'
,
(
req
,
res
,
next
)
=>
{
req
.
result
=
[
{
id
:
1
,
name
:
'
Sem instrução e menos de 1 ano de estudo
'
},
{
id
:
2
,
name
:
'
Fundamental incompleto ou equivalente
'
},
{
id
:
3
,
name
:
'
Fundamental completo ou equivalente
'
},
{
id
:
4
,
name
:
'
Médio incompleto ou equivalente
'
},
{
id
:
5
,
name
:
'
Médio completo ou equivalente
'
},
{
id
:
6
,
name
:
'
Superior incompleto ou equivalente
'
},
{
id
:
7
,
name
:
'
Superior completo ou equivalente
'
},
{
id
:
8
,
name
:
'
Não se aplica - 17 anos ou menos
'
}
];
next
();
},
response
(
'
instruction_level
'
));
PnadNovoApp
.
get
(
'
/adm_dependency
'
,
(
req
,
res
,
next
)
=>
{
req
.
result
=
[
{
id
:
1
,
name
:
'
Publica
'
},
{
id
:
2
,
name
:
'
Privada
'
},
{
id
:
3
,
name
:
'
Não frequenta instituição de ensino
'
},
];
next
();
},
response
(
'
years_of_study
'
));
rqf
.
addField
({
rqf
.
addField
({
name
:
'
filter
'
,
name
:
'
filter
'
,
field
:
false
,
field
:
false
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment