biothings.api icon indicating copy to clipboard operation
biothings.api copied to clipboard

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

Open newgene opened this issue 6 months ago • 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.

newgene avatar Jan 04 '24 19:01 newgene

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

newgene avatar Jan 04 '24 19:01 newgene