Skip to content

Commit

Permalink
Merge pull request #74 from geneontology/v0.2.2
Browse files Browse the repository at this point in the history
add missing GO-CAM sparql queries from 2023 version of api-gorest
  • Loading branch information
sierra-moxon authored Sep 14, 2023
2 parents ce99356 + 928eb80 commit aee689e
Show file tree
Hide file tree
Showing 13 changed files with 834 additions and 77 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ dev: install start-dev
# note: using root path below means we need a proxy server out front to strip the prefix else, teh docs don't work.
# https://fastapi.tiangolo.com/advanced/behind-a-proxy/
start:
poetry run gunicorn app.main:app --workers 4 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:8080 --log-level info --access-logfile combined_access_error.log --error-logfile combined_access_error.log --capture-output
poetry run gunicorn app.main:app --workers 4 --timeout 120 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:8080 --log-level info --access-logfile combined_access_error.log --error-logfile combined_access_error.log --capture-output

start-dev:
poetry run gunicorn app.main:app --workers 4 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:8081 --log-level info --access-logfile combined_access_error.log --error-logfile combined_access_error.log --capture-output
poetry run gunicorn app.main:app --workers 4 --timeout 120 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:8081 --log-level info --access-logfile combined_access_error.log --error-logfile combined_access_error.log --capture-output

test: unit-tests integration-tests lint spell

Expand Down
4 changes: 3 additions & 1 deletion app/routers/labeler.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
logger = logging.getLogger()


@router.get("/api/ontol/labeler", tags=["ontol/labeler"])
@router.get(
"/api/ontol/labeler", tags=["ontol/labeler"], description="Fetches a map from IDs to labels e.g. GO:0003677."
)
async def expand_curie(
id: List[str] = Query(..., description="IDs to fetch labels for.", example=["GO:0003677", "GO:0008150"])
):
Expand Down
Loading

0 comments on commit aee689e

Please sign in to comment.