Skip to content

Commit 7736377

Browse files
committed
update doc example
1 parent 519eb38 commit 7736377

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

docs/filtering.rst

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,24 @@ You can also use more than one simple filter in a request:
175175

176176
which is equal to:
177177

178+
.. sourcecode:: json
179+
180+
[
181+
{
182+
"name":"first_name",
183+
"op":"eq",
184+
"val":"John"
185+
},
186+
{
187+
"name":"gender",
188+
"op":"eq",
189+
"val":"male"
190+
}
191+
]
192+
178193
.. sourcecode:: http
179194

180-
GET /user?filter=[{"name":"first_name","op":"eq","val":"John"}, {"name":"gender","op":"eq","val":"male"}] HTTP/1.1
195+
GET /user?filter=[{"name":"first_name","op":"eq","val":"John"},{"name":"gender","op":"eq","val":"male"}] HTTP/1.1
181196

182197
You can also use relationship attribute in a request:
183198

0 commit comments

Comments
 (0)