|
@@ -170,7 +170,7 @@ NB: This transform is CPU and memory intensive and can also be executed client-s
|
170
|
170
|
|
171
|
171
|
### List + Filter
|
172
|
172
|
|
173
|
|
-Search is implemented with the "filter" parameter. You need to specify the column name, a comma, the match type, another commma and the value you want to filter on. These are supported match types:
|
|
173
|
+Search is implemented with the "filter" parameter. You need to specify the column name, a comma, the match type, another commma and the value or values you want to filter on. These are supported match types:
|
174
|
174
|
|
175
|
175
|
- cs: contain string (string contains value)
|
176
|
176
|
- sw: start with (string starts with value)
|
|
@@ -182,7 +182,7 @@ Search is implemented with the "filter" parameter. You need to specify the colum
|
182
|
182
|
- gt: greater than (number is higher than value)
|
183
|
183
|
- bt: between (number is between two comma separated values)
|
184
|
184
|
- in: in (number or string is in comma separated list of values)
|
185
|
|
- - is: is null (field contains "NULL" value)
|
|
185
|
+ - is: is null (field contains "NULL" value, does not need value specified)
|
186
|
186
|
|
187
|
187
|
You can negate all filters by prepending a 'n' character, so that 'eq' becomes 'neq'.
|
188
|
188
|
|
|
@@ -192,6 +192,8 @@ GET http://localhost/api.php/categories?filter=name,sw,Inter
|
192
|
192
|
GET http://localhost/api.php/categories?filter=id,le,1
|
193
|
193
|
GET http://localhost/api.php/categories?filter=id,ngt,2
|
194
|
194
|
GET http://localhost/api.php/categories?filter=id,bt,1,1
|
|
195
|
+GET http://localhost/api.php/categories?filter=id,nis
|
|
196
|
+GET http://localhost/api.php/categories?filter=categories.id,eq,1
|
195
|
197
|
GET http://localhost/api.php/categories?filter=categories.id,eq,1
|
196
|
198
|
```
|
197
|
199
|
|