Skip to content

Commit

Permalink
Filtered example.
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav committed Aug 28, 2024
1 parent 4e1eef5 commit 9beac19
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions api/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`.",
Expand Down Expand Up @@ -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`.",
Expand Down

0 comments on commit 9beac19

Please sign in to comment.