@@ -18,8 +18,8 @@ Create a `db.json` or `db.json5` file
18
18
``` json
19
19
{
20
20
"posts" : [
21
- { "id" : " 1" , "title" : " a title" },
22
- { "id" : " 2" , "title" : " another title" }
21
+ { "id" : " 1" , "title" : " a title" , "views" : 100 },
22
+ { "id" : " 2" , "title" : " another title" , "views" : 200 }
23
23
],
24
24
"comments" : [
25
25
{ "id" : " 1" , "text" : " a comment about post 1" , "postId" : " 1" },
@@ -38,8 +38,8 @@ Create a `db.json` or `db.json5` file
38
38
``` json5
39
39
{
40
40
posts: [
41
- { id: ' 1' , title: ' a title' },
42
- { id: ' 2' , title: ' another title' },
41
+ { id: ' 1' , title: ' a title' , views : 100 },
42
+ { id: ' 2' , title: ' another title' , views : 200 },
43
43
],
44
44
comments: [
45
45
{ id: ' 1' , text: ' a comment about post 1' , postId: ' 1' },
@@ -153,9 +153,9 @@ GET /posts?_sort=id,-views
153
153
- ` x.y.z[i]... `
154
154
155
155
```
156
- GET /posts?author.name=foo
157
- GET /posts?author.email=foo
158
- GET /posts?tags [0]=foo
156
+ GET /foo?a.b=bar
157
+ GET /foo?x.y_lt=100
158
+ GET /foo?arr [0]=bar
159
159
```
160
160
161
161
### Embed
0 commit comments