diff --git a/.python-version b/.python-version index 0a590336..9ac38041 100644 --- a/.python-version +++ b/.python-version @@ -1 +1 @@ -3.9.10 +3.11.5 diff --git a/Dockerfile b/Dockerfile index 2f27fe92..a3ffecb8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/api/resources/openapi.yml b/api/resources/openapi.yml index 94347ba1..4469bed6 100644 --- a/api/resources/openapi.yml +++ b/api/resources/openapi.yml @@ -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 @@ -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 diff --git a/api/server.py b/api/server.py index 6d70dab9..4ad0397e 100755 --- a/api/server.py +++ b/api/server.py @@ -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)