Skip to content

Commit

Permalink
Fix incorrect GET parameter syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav committed Jul 26, 2023
1 parent 3b2bb38 commit 8bc65f8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions api/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,13 @@ class Request(BaseModel):
tags=["lookup"],
)
async def lookup_names_get(
request: Request = Body(..., example={
"curies": ["MONDO:0005737", "MONDO:0009757"],
}),
curies: Annotated[str, Query(
examples=["MONDO:0005737", "MONDO:0009757"],
description="A list of CURIEs to look up synonyms for."
)]
) -> Dict[str, List[str]]:
"""Returns a list of synonyms for a particular CURIE."""
return await reverse_lookup(request.curies)
return await reverse_lookup(curies)


@app.post(
Expand Down

0 comments on commit 8bc65f8

Please sign in to comment.