KarrLab / datanator_rest_api

A OAS3 compliant REST API for the Datanator integrated database
MIT License
0 stars 3 forks source link

Add endpoint that returns the taxonomic distribution of the Datanator #97

Closed jonrkarr closed 4 years ago

jonrkarr commented 4 years ago

We need another endpoint to add a chart of the taxonomic distribution of Datanator to the stats page. See also KarrLab/datanator_frontend/#256.

Endpoint:

lzy7071 commented 4 years ago

This has turned out to be a lot more complicated than I expected. The endpoint is finally up https://testapi.datanator.info/taxon/summary/taxon_distribution. I stored the equivalence of the returned distribution object here: https://github.com/KarrLab/datanator_query_python/blob/testapi/docs/taxon_distribution_frontend.json The less processed file can be seen here: https://github.com/KarrLab/datanator_query_python/blob/testapi/docs/taxon_distribution.json

jonrkarr commented 4 years ago

I integrated this into the frontend