Admin API filter to search users by username
This commit is contained in:
@@ -915,6 +915,17 @@
|
||||
},
|
||||
"style": "form"
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "filter[search]",
|
||||
"description": "Retrieve users where the username matches contains the given string\n\nNote that this doesn't change the ordering of the result, which are still ordered by ID.",
|
||||
"schema": {
|
||||
"description": "Retrieve users where the username matches contains the given string\n\nNote that this doesn't change the ordering of the result, which are still ordered by ID.",
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"style": "form"
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "filter[status]",
|
||||
@@ -3893,6 +3904,11 @@
|
||||
"type": "boolean",
|
||||
"nullable": true
|
||||
},
|
||||
"filter[search]": {
|
||||
"description": "Retrieve users where the username matches contains the given string\n\nNote that this doesn't change the ordering of the result, which are still ordered by ID.",
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"filter[status]": {
|
||||
"description": "Retrieve the items with the given status\n\nDefaults to retrieve all users, including locked ones.\n\n* `active`: Only retrieve active users\n\n* `locked`: Only retrieve locked users (includes deactivated users)\n\n* `deactivated`: Only retrieve deactivated users",
|
||||
"$ref": "#/components/schemas/UserStatus",
|
||||
|
||||
Reference in New Issue
Block a user