Skip to content

Commit

Permalink
Merge pull request #102 from TranslatorSRI/patch-reverse-lookup
Browse files Browse the repository at this point in the history
fixes reverse lookup get endpoint. fixes #98.
  • Loading branch information
gaurav authored Oct 13, 2023
2 parents b52e679 + 42cddbd commit 81c24f5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.9.10
3.11.5
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# leverage the renci python base image
FROM renciorg/renci-python-image:latest
FROM ghcr.io/translatorsri/renci-python-image:3.11.5

# install basic tools
RUN apt update
Expand Down
4 changes: 2 additions & 2 deletions api/resources/openapi.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.0.2
info:
title: Name Resolver
version: 1.3.6
version: 1.3.7
email: bizon@renci.org
name: Chris Bizon
x-id: https://github.com/cbizon
Expand All @@ -24,6 +24,6 @@ servers:
- description: Default server
url: https://name-resolution-sri.renci.org/
- description: localhost
url: http://localhost:8080/
url: http://localhost:2433/
tags:
- name: translator
6 changes: 3 additions & 3 deletions api/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ class Request(BaseModel):
tags=["lookup"],
)
async def lookup_names_get(
curies: Annotated[str, Query(
examples=["MONDO:0005737", "MONDO:0009757"],
curies: List[str]= Query(
example=["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(curies)
Expand Down

0 comments on commit 81c24f5

Please sign in to comment.