Skip to content

Conversation

@gaurav
Copy link
Collaborator

@gaurav gaurav commented Oct 16, 2024

We've had a lot of users getting confused because a CURIE that works in NodeNorm doesn't work in NameLookup -- this is because NameLookup's /reverse_lookup endpoint doesn't do any normalization. This PR deprecates those endpoints (while leaving them around), and adds new /synonyms endpoints, which explicitly call them preferred_curies and has a note in the description to indicate that NodeNorm should be used to get these. /synonyms isn't quite accurate, because really this endpoint returns all the information we have on that CURIE, including the suffix, taxon information and so on. But the obvious correct name (/lookup) is already in use for NameLookup's text search function.

Closes #136.

@gaurav gaurav marked this pull request as ready for review November 1, 2024 20:50
@gaurav gaurav requested a review from cbizon November 1, 2024 20:50
@gaurav gaurav merged commit 288ca5b into master Nov 4, 2024
@gaurav gaurav deleted the deprecate-reverse-lookup branch November 4, 2024 21:19
@gaurav gaurav mentioned this pull request Nov 4, 2024
gaurav added a commit that referenced this pull request Nov 7, 2024
Unfortunately, #168 renamed the parameter for the deprecated endpoint /reverse_lookup from curies to preferred_curies. This PR undoes that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename /reverse_lookup?curies=X to /synonyms?preferred_curie=X

3 participants