biothings/biothings.api

Support CURIE IDs in annotation endpoint (both GET and POST)

newgene opened this issue · 1 comments

Currently, BioThings API's annotation endpoint supports query by supported ID directly, e.g. in MyGene.info API:

GET /v3/gene/1017

POST /v3/gene
   ids: 1017,1018

After the fix of #305, we can allow this endpoint to support a set of CURIE IDs (e.g. /v3/gene/NCBIGene:1017). This feature should be optional, enabled when a set of supported CURIE prefixes are provided in the API config file.

The implementation can reference the annotator handler from pending.api repo and the supported CURIE prefixes can use the biolink prefixes.