Skip to content

Commit

Permalink
Make query & sort optional on association table (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinschaper authored Oct 2, 2023
1 parent 5ee6576 commit 95cfbba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/monarch_py/api/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ def _association_table(
title="Type of association to retrieve association table data for",
examples=["biolink:DiseaseToPhenotypicFeatureAssociation"],
),
query: str = Query(default=..., title="query string to limit results to a subset", examples=["thumb"]),
query: str = Query(default=None, title="query string to limit results to a subset", examples=["thumb"]),
sort: List[str] = Query(
default=...,
default=None,
title="Sort results by a list of field + direction statements",
examples=["subject_label asc", "predicate asc", "object_label asc"],
),
Expand Down

0 comments on commit 95cfbba

Please sign in to comment.