From 9beac19f1892b8b209f1864ec553e9f27553e33a Mon Sep 17 00:00:00 2001 From: Gaurav Vaidya Date: Wed, 28 Aug 2024 19:26:59 -0400 Subject: [PATCH] Filtered example. --- api/server.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/api/server.py b/api/server.py index 4777bb5e..3dcaab16 100755 --- a/api/server.py +++ b/api/server.py @@ -200,8 +200,9 @@ async def lookup_curies_get( "e.g. `biolink:Disease` or `Disease`. Multiple types will be combined with OR, i.e. filtering " "for PhenotypicFeature and Disease will return concepts that are either PhenotypicFeatures OR " "Disease, not concepts that are both PhenotypicFeature AND Disease.", - # We can't use `example` here because otherwise it gets filled in when filling this in. - example=["biolink:Disease", "biolink:PhenotypicFeature"] + # We can't use `example` here because otherwise it gets filled in when you click "Try it out", + # which is easy to overlook. + # example=["biolink:Disease", "biolink:PhenotypicFeature"] )] = [], only_prefixes: Annotated[Union[str, None], Query( description="Pipe-separated, case-sensitive list of prefixes to filter to, e.g. `MONDO|EFO`.", @@ -258,8 +259,9 @@ async def lookup_curies_post( "e.g. `biolink:Disease` or `Disease`. Multiple types will be combined with OR, i.e. filtering " "for PhenotypicFeature and Disease will return concepts that are either PhenotypicFeatures OR " "Disease, not concepts that are both PhenotypicFeature AND Disease.", - # We can't use `example` here because otherwise it gets filled in when filling this in. - example=["biolink:Disease", "biolink:PhenotypicFeature"] + # We can't use `example` here because otherwise it gets filled in when you click "Try it out", + # which is easy to overlook. + # example=["biolink:Disease", "biolink:PhenotypicFeature"] )] = [], only_prefixes: Annotated[Union[str, None], Query( description="Pipe-separated, case-sensitive list of prefixes to filter to, e.g. `MONDO|EFO`.",