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
......@@ -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())
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment