Skip to content

Commit 43d503d

Browse files
authored
Merge pull request #754 from vvatelot/patch-1
Custom filter on specific properties using ApiFilter annotation
2 parents bc3a8ba + 90bfa24 commit 43d503d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/filters.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,8 +950,9 @@ class Offer
950950
// ...
951951
}
952952
```
953+
When using `ApiFilter` annotation, the declared properties in the `services.yaml` will not be taken into account. You have to use the `ApiFilter` way (see the [documentation](#apifilter-annotation)).
953954

954-
You can now enable this filter using URLs like `http://example.com/offers?regexp_email=^[FOO]`. This new filter will also
955+
Finally you can use this filter in the URL like `http://example.com/offers?regexp_email=^[FOO]`. This new filter will also
955956
appear in Swagger and Hydra documentations.
956957

957958
### Creating Custom Doctrine MongoDB ODM Filters

0 commit comments

Comments
 (0)