File tree Expand file tree Collapse file tree 4 files changed +177
-107
lines changed
Expand file tree Collapse file tree 4 files changed +177
-107
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,18 @@ using TypeSpec.OpenAPI;
1313
1414namespace Customers ;
1515
16+ /**
17+ * Filter options for listing customers.
18+ */
19+ @ friendlyName ("ListCustomersParamsFilter" )
20+ model ListCustomersParamsFilter {
21+ /**
22+ * Filter customers by key.
23+ * Case-insensitive partial match.
24+ */
25+ key ? : Shared .ExternalResourceKey ;
26+ }
27+
1628/**
1729 * Query params for listing customers.
1830 */
@@ -32,6 +44,14 @@ model ListCustomersParams {
3244 */
3345 @ query (#{ name : "sort" })
3446 sort ? : Common .SortQuery ;
47+
48+ /**
49+ * Filter customers returned in the response.
50+ *
51+ * To filter customers by key add the following query param: filter[key]=my-db-id
52+ */
53+ @ query (#{ style : "deepObject" , explode : true })
54+ filter ? : ListCustomersParamsFilter ;
3555}
3656
3757interface CustomersOperations {
You can’t perform that action at this time.
0 commit comments