allow all characters as search term in API (#1597)

This commit is contained in:
Kevin Papst
2020-03-30 01:06:18 +02:00
committed by GitHub
parent dfe949264f
commit 7becddc3a4
7 changed files with 11 additions and 7 deletions

View File

@@ -82,7 +82,7 @@ final class UserController extends BaseApiController
* @Rest\QueryParam(name="visible", requirements="1|2|3", strict=true, nullable=true, description="Visibility status to filter users. Allowed values: 1=visible, 2=hidden, 3=all (default: 1)")
* @Rest\QueryParam(name="orderBy", requirements="id|username|alias|email", strict=true, nullable=true, description="The field by which results will be ordered. Allowed values: id, username, alias, email (default: username)")
* @Rest\QueryParam(name="order", requirements="ASC|DESC", strict=true, nullable=true, description="The result order. Allowed values: ASC, DESC (default: ASC)")
* @Rest\QueryParam(name="term", requirements="[a-zA-Z0-9 \-,:]+", strict=true, nullable=true, description="Free search term")
* @Rest\QueryParam(name="term", description="Free search term")
*
* @Security("is_granted('view_user')")
*