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 synonym types to bioentity {id} endpoints #353

Open kshefchek opened 4 years ago

kshefchek commented 4 years ago

See the request here - https://github.com/monarch-initiative/monarch-ui/issues/334

Example: https://api-dev.monarchinitiative.org/api/bioentity/disease/MONDO:0007947

Currently bioentity/{type}/{id} combines all synonym types into one list, so the only way to get this is from the graph endpoint. We should make sure the pred field reflects the type of synonym, or break these out into different fields (the former probably makes more sense and won't break peoples code).