monarch-initiative / biolink-api

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

Add category to autocomplete query #325

Closed cmungall closed 4 years ago

cmungall commented 4 years ago

I would like to restrict autocomplete to gene, allele, phenotype, etc

E.g https://api.monarchinitiative.org/api/search/entity/autocomplete/Bloc1s6&category=allele

deepakunni3 commented 4 years ago

We do this already.

For example: https://api.monarchinitiative.org/api/search/entity/autocomplete/Bloc1s6?&category=gene

gives only results for type gene

cmungall commented 4 years ago

doh forgot the '?'. And somehow I didn't spot the category field when I looked at the swagger