gene sets summary route (#2099)

* gene sets summary route

* lint

* clarify return type

* style
This commit is contained in:
Bruce Martin
2021-03-10 16:02:05 -08:00
committed by GitHub
parent 1d3d9237e7
commit 31e0326ded
10 changed files with 228 additions and 38 deletions
+7
View File
@@ -155,6 +155,12 @@ class GenesetsAPI(Resource):
return common_rest.genesets_put(request, data_adaptor)
class GenesetSummaryAPI(Resource):
@rest_get_data_adaptor
def get(self, data_adaptor):
return common_rest.geneset_summary_get(request, data_adaptor)
def get_api_base_resources(bp_base):
"""Add resources that are accessed from the api url"""
api = Api(bp_base)
@@ -181,6 +187,7 @@ def get_api_dataroot_resources(bp_dataroot):
add_resource(AnnotationsVarAPI, "/annotations/var")
add_resource(DataVarAPI, "/data/var")
add_resource(GenesetsAPI, "/genesets")
add_resource(GenesetSummaryAPI, "/geneset_summary")
# Display routes
add_resource(ColorsAPI, "/colors")
# Computation routes