You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ By default, all products in the database are returned when calling `/sneakers`.
31
31
- releaseDate
32
32
- released
33
33
34
-
Filtering is case insensitive, but the search will start from the beginning of each field. For example, a search `/sneakers?brand=jordan` will return all sneakers with a brand starting with `Jordan`, `jordan`, `JOrdan`, etc... but a search `/sneakers?brand=ordan` will not find any `Jordan`s.
34
+
Filtering is case insensitive, but the search will always start at the beginning of each field. For example, a search `/sneakers?brand=jordan` will return all sneakers with a brand starting with `Jordan`, `jordan`, `JORdan`, etc... but a search `/sneakers?brand=ordan` will not find any `Jordan` brand sneakers. For this reason, those needing more comprehensive "search" functionality should use the `/search` endpoint.
title="Brand", description="Filter by the brand of the shoes.", min_length=3
27
+
),
28
+
] =None,
29
+
name: Annotated[
30
+
str|None,
31
+
Query(
32
+
title="Product Name",
33
+
description="Filter by the name of the shoes.",
34
+
min_length=3,
35
+
),
36
+
] =None,
37
+
colorway: Annotated[
38
+
str|None,
39
+
Query(
40
+
title="Colorway",
41
+
description="Filter by the colorway of the shoes.",
42
+
min_length=3,
43
+
),
44
+
] =None,
45
+
audience: Annotated[
46
+
Audience|None,
47
+
Query(
48
+
title="Audience",
49
+
description="Filter on the gender/audience of the shoes. See Audience for possible values.",
50
+
min_length=3,
51
+
),
52
+
] =None,
53
+
releaseDate: Annotated[
54
+
str|None,
55
+
Query(
56
+
title="Release Date",
57
+
description="Filter by the release date of the shoes. Can be a specific date or an inequality. Operators are (lt, lte, gt, gte). Example usage: lt:2021-01-01",
58
+
),
59
+
] =None,
60
+
released: Annotated[
61
+
bool|None,
62
+
Query(
63
+
title="Released?",
64
+
description="Filter by whether the shoes have been released or not. Overrides any filter on releaseDate if set.",
65
+
),
66
+
] =None,
67
+
sort: Annotated[
68
+
SortKey,
69
+
Query(
70
+
title="Sort By",
71
+
description="The field to sort by.",
72
+
),
73
+
] =SortKey.RELEASE_DATE,
74
+
order: Annotated[
75
+
SortOrder,
76
+
Query(
77
+
title="Sort Order",
78
+
description="The order to sort in based on the sort key.",
79
+
),
80
+
] =SortOrder.DESCENDING,
81
+
page: Annotated[
82
+
int|None,
83
+
Query(
84
+
gte=1, title="Page Number", description="The page number of the result set."
85
+
),
86
+
] =None,
87
+
pageSize: Annotated[
88
+
int|None,
89
+
Query(
90
+
gte=1,
91
+
lte=MAX_LIMIT,
92
+
title="Page Size",
93
+
description=f"The number of items on each page. Must be in the range [1-{MAX_LIMIT}] (inclusive).",
0 commit comments