@@ -18,8 +18,8 @@ Create a `db.json` or `db.json5` file
1818``` json
1919{
2020 "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 }
2323 ],
2424 "comments" : [
2525 { "id" : " 1" , "text" : " a comment about post 1" , "postId" : " 1" },
@@ -38,8 +38,8 @@ Create a `db.json` or `db.json5` file
3838``` json5
3939{
4040 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 },
4343 ],
4444 comments: [
4545 { id: ' 1' , text: ' a comment about post 1' , postId: ' 1' },
@@ -153,9 +153,9 @@ GET /posts?_sort=id,-views
153153- ` x.y.z[i]... `
154154
155155```
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
159159```
160160
161161### Embed
0 commit comments