From 95cfbba19177fc36e0ef31f2242187d82ca685fc Mon Sep 17 00:00:00 2001 From: Kevin Schaper <kevinschaper@gmail.com> Date: Mon, 2 Oct 2023 16:27:52 -0700 Subject: [PATCH] Make query & sort optional on association table (#359) --- backend/src/monarch_py/api/entity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/monarch_py/api/entity.py b/backend/src/monarch_py/api/entity.py index 238c10d65..2527fbcc6 100644 --- a/backend/src/monarch_py/api/entity.py +++ b/backend/src/monarch_py/api/entity.py @@ -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"], ),