Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Statistical-Genetics
jass
Commits
e8b74465
Commit
e8b74465
authored
Jul 08, 2021
by
Hervé Ménager
Browse files
fix URL endpoints to retrieve phenotypes and launch analyses
these endpoints should not end with a slash
parent
618664bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
jass/server.py
View file @
e8b74465
...
...
@@ -79,7 +79,7 @@ def get_phenotypes():
return
get_available_phenotypes
(
os
.
path
.
join
(
config
[
"DATA_DIR"
],
"initTable.hdf5"
))
@
blp_phenotypes
.
route
(
"
/
"
)
@
blp_phenotypes
.
route
(
""
)
class
PhenotypesMethodView
(
MethodView
):
@
blp_phenotypes
.
response
(
200
,
PhenotypeSchema
(
many
=
True
))
def
get
(
self
):
...
...
@@ -87,7 +87,7 @@ class PhenotypesMethodView(MethodView):
return
get_phenotypes
()
@
blp_projects
.
route
(
"
/
"
)
@
blp_projects
.
route
(
""
)
class
ProjectCreateMethodView
(
MethodView
):
@
blp_projects
.
arguments
(
ProjectParamsSchema
(),
location
=
"form"
)
@
blp_projects
.
response
(
200
,
ProjectSchema
())
...
...
@@ -102,7 +102,7 @@ class ProjectCreateMethodView(MethodView):
return
create_project
([
p
.
id
for
p
in
phenotypes
],
get_phenotypes
())
@
blp_local_projects
.
route
(
"
/
"
)
@
blp_local_projects
.
route
(
""
)
class
LocalProjectCreateMethodView
(
MethodView
):
@
blp_projects
.
arguments
(
LocalProjectParamsSchema
(),
location
=
"form"
)
@
blp_projects
.
response
(
200
,
ProjectSchema
())
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment