Skip to content

Commit

Permalink
Merge pull request #172 from TranslatorSRI/fix-reverse-curie
Browse files Browse the repository at this point in the history
Unfortunately, #168 renamed the parameter for the deprecated endpoint /reverse_lookup from curies to preferred_curies. This PR undoes that.
  • Loading branch information
gaurav authored Nov 7, 2024
2 parents cb10b89 + 83658d1 commit d184b71
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions api/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,16 @@ class SynonymsRequest(BaseModel):
tags=["lookup"],
deprecated=True,
)
async def reverse_lookup_get(
curies: List[str]= Query(
example=["MONDO:0005737", "MONDO:0009757"],
description="A list of CURIEs to look up synonyms for."
)
) -> Dict[str, Dict]:
"""Returns a list of synonyms for a particular CURIE."""
return await reverse_lookup(curies)


@app.get(
"/synonyms",
summary="Look up synonyms for a CURIE.",
Expand Down

0 comments on commit d184b71

Please sign in to comment.