Skip to content
Snippets Groups Projects
Commit e8b74465 authored by Hervé Ménager's avatar Hervé Ménager
Browse files

fix URL endpoints to retrieve phenotypes and launch analyses

these endpoints should not end with a slash
parent 618664bf
Branches
No related tags found
3 merge requests!35Replace Connexion by flask-smorest,!34Replace connexion by flask-smorest,!33change default handling of missing value : the server and the command line...
......@@ -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())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment