Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
repp_backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Julieta Dubra Raimunde
repp_backend
Commits
beb853b2
Commit
beb853b2
authored
3 years ago
by
Ignacio Bengoa Nion
Browse files
Options
Downloads
Patches
Plain Diff
Swagger documentation updated - ParameterController added
parent
ea6d2d66
No related branches found
Branches containing commit
Tags
REP_v2.0
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
swagger.yaml
+118
-3
118 additions, 3 deletions
swagger.yaml
with
118 additions
and
3 deletions
swagger.yaml
+
118
−
3
View file @
beb853b2
...
...
@@ -9,6 +9,7 @@ tags:
-
name
:
Auth
-
name
:
Parser
-
name
:
Calculation
-
name
:
Parameters
paths
:
/login
:
...
...
@@ -63,6 +64,60 @@ paths:
description
:
Bad request.
security
:
-
BearerAuth
:
[]
/parameters
:
post
:
tags
:
-
Parameters
summary
:
Get all parameters
responses
:
'
200'
:
description
:
Ok.
'
400'
:
description
:
Bad request.
security
:
-
BearerAuth
:
[]
/parameters/weights
:
post
:
tags
:
-
Parameters
summary
:
Get all default weights
responses
:
'
200'
:
description
:
Ok.
'
400'
:
description
:
Bad request.
security
:
-
BearerAuth
:
[]
/parameters/extraData
:
post
:
tags
:
-
Parameters
summary
:
Get all extra data
responses
:
'
200'
:
description
:
Ok.
'
400'
:
description
:
Bad request.
security
:
-
BearerAuth
:
[]
/parameters/parameterUpdate
:
put
:
tags
:
-
Parameters
summary
:
Update a certain parameter
requestBody
:
content
:
application/json
:
schema
:
$ref
:
'
#/components/schemas/Parameter'
required
:
true
responses
:
'
200'
:
description
:
Ok.
'
400'
:
description
:
Bad request.
security
:
-
BearerAuth
:
[]
components
:
securitySchemes
:
BearerAuth
:
...
...
@@ -114,9 +169,9 @@ components:
sex
:
type
:
string
medianWeight
:
type
:
string
type
:
number
population
:
type
:
string
type
:
number
required
:
-
age
-
sex
...
...
@@ -197,4 +252,64 @@ components:
$ref
:
'
#/components/schemas/ExtraData'
required
:
-
groups
-
extraData
\ No newline at end of file
-
extraData
Parameter
:
properties
:
parameter
:
oneOf
:
-
$ref
:
'
#/components/schemas/WeightParameter'
-
$ref
:
'
#/components/schemas/ExtraDataParameter'
-
$ref
:
'
#/components/schemas/EquationConstantParameter'
WeightParameter
:
properties
:
parameterType
:
type
:
string
ageRange
:
type
:
string
sex
:
type
:
string
value
:
type
:
number
required
:
-
parameterType
-
ageRange
-
sex
-
value
ExtraDataParameter
:
properties
:
parameterType
:
type
:
string
id
:
type
:
string
value
:
type
:
number
description
:
type
:
string
required
:
-
parameterType
-
id
-
value
EquationConstantParameter
:
properties
:
parameterType
:
type
:
string
ageRange
:
type
:
string
sex
:
type
:
string
order
:
type
:
number
value
:
type
:
number
description
:
type
:
string
required
:
-
parameterType
-
ageRange
-
sex
-
order
-
value
\ No newline at end of file
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