Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
openapi: 3.0.0
info:
version: 1.0.0
title: REPP Backend
description: ''
security:
- BearerAuth: []
tags:
- name: Auth
- name: Parser
- name: Calculation
paths:
/login:
post:
tags:
- Auth
summary: Login to get an access token
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UserCredentials'
responses:
'200':
description: Ok.
security: []
/sheetParser:
post:
tags:
- Parser
summary: Given a sheet returns SheetParserResponse
requestBody:
content:
application/octet-stream:
schema:
format: binary
required: true
responses:
'200':
description: Ok.
security:
- BearerAuth: []
/repCalculator:
summary: Given population data calculates its energetic requirement
requestBody:
content:
application/json:
schema:
required: true
responses:
'200':
description: Ok.
security:
- BearerAuth: []
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
components:
securitySchemes:
BearerAuth:
type: http
scheme: bearer
schemas:
Menores:
properties:
edad:
type: integer
peso:
type: integer
Mayores:
properties:
edad:
type: integer
peso:
type: integer
talla:
type: integer
SheetParserResponse:
properties:
hombresMenores:
type: array
items:
$ref: '#/components/schemas/Menores'
mujeresMenores:
type: array
items:
$ref: '#/components/schemas/Menores'
hombres:
type: array
items:
$ref: '#/components/schemas/Mayores'
mujeres:
type: array
items:
$ref: '#/components/schemas/Mayores'
UserCredentials:
properties:
user:
type: string
pass:
type: string
AgeGroupJSON:
properties:
type: string
type: string
type: string
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
population:
type: string
required:
- age
- sex
- medianWeight
- population
MinorPAL:
properties:
lowPALPrevalence:
type: number
moderatePALPrevalence:
type: number
intensePALPrevalence:
type: number
required:
- lowPALPrevalence
- moderatePALPrevalence
- intensePALPrevalence
AdultPAL:
properties:
urbanPercentage:
type: number
activeUrbanPAL:
type: number
lowUrbanPAL:
type: number
ruralPercentage:
type: number
activeRuralPAL:
type: number
lowRuralPAL:
type: number
required:
- urbanPercentage
- activeUrbanPAL
- lowUrbanPAL
- ruralPercentage
- activeRuralPAL
- lowRuralPAL
IndividualMaternity:
properties:
pregnantWomen:
type: number
lactatingWomen:
type: number
required:
- pregnantWomen
- lactatingWomen
PopulationMaternity:
properties:
countryBirthRate:
type: number
countryPopulation:
type: number
required:
- countryBirthRate
- countryPopulation
ExtraData:
properties:
minorPAL:
$ref: '#/components/schemas/MinorPAL'
adultPAL:
$ref: '#/components/schemas/AdultPAL'
maternity18to29:
oneOf:
- $ref: '#/components/schemas/IndividualMaternity'
- $ref: '#/components/schemas/PopulationMaternity'
maternity30to59:
oneOf:
- $ref: '#/components/schemas/IndividualMaternity'
- $ref: '#/components/schemas/PopulationMaternity'
ReqCalculation:
properties:
groups:
type: array
items:
$ref: '#/components/schemas/AgeGroupJSON'
extraData:
$ref: '#/components/schemas/ExtraData'
required:
- groups
- extraData