I have installed version 3.6.8 of Strapi
In the docs for v3.xhttps://strapi.gitee.io/documentation/v3.x/content-api/parameters.html#filter
Filters are used as a suffix of a field name:
- No suffix or eq: Equals
ne
: Not equalslt
: Less thangt
: Greater thanlte
: Less than or equal togte
: Greater than or equal toin
: Included in an array of valuesnin
: Isn't included in an array of valuescontains
: Containsncontains
: Doesn't containcontainss
: Contains case sensitivencontainss
: Doesn't contain case sensitivenull
: Is null/Is not null
And I can see those examples
GET /restaurants?_where[price_gte]=3
GET /restaurants?id_in=3&id_in=6&id_in=8
etc..
So I tried
/posts?_where[title_contains]=foo/posts?title_contains=foo
And I also tried the "new way" in V4
/posts?filters[title][contains]=foo
But all of this attempts return all the post, exactly the same than just doing
/posts?
Any idea how to filter by post title and/or post body?