monarch-initiative / biolink-api

API for linked biological knowledge
https://api.monarchinitiative.org/api/
BSD 3-Clause "New" or "Revised" License
63 stars 25 forks source link

Fix graph routes #281

Closed deepakunni3 closed 5 years ago

deepakunni3 commented 5 years ago

Fix implementation of graph/node/<id> and graph/edges/from/<id> routes.

This PR will change the behavior of graph/edges/from/<id>.

Previously this route would,

This PR simplifies the behavior of graph/edges/from/<id> where it now acts as a simple pass through to SciGraph graph/neighbors endpoint and makes no assumption about relation, direction or depth.

kshefchek commented 5 years ago

couple of linting considerations but otherwise looks good, +1

deepakunni3 commented 5 years ago

Thanks @kshefchek

I'll incorporate the suggested changes.