Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaces /reverse_lookup with a more sensible name. #168

Merged
merged 7 commits into from
Nov 4, 2024

Conversation

gaurav
Copy link
Contributor

@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
1 check passed
@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
2 participants