Skip to content

Commit

Permalink
docs: example
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode committed Jan 26, 2024
1 parent a030b6f commit 38ded8a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Expand Up @@ -18,8 +18,8 @@ Create a `db.json` or `db.json5` file
```json
{
"posts": [
{ "id": "1", "title": "a title" },
{ "id": "2", "title": "another title" }
{ "id": "1", "title": "a title", "views": 100 },
{ "id": "2", "title": "another title", "views": 200 }
],
"comments": [
{ "id": "1", "text": "a comment about post 1", "postId": "1" },
Expand All @@ -38,8 +38,8 @@ Create a `db.json` or `db.json5` file
```json5
{
posts: [
{ id: '1', title: 'a title' },
{ id: '2', title: 'another title' },
{ id: '1', title: 'a title', views: 100 },
{ id: '2', title: 'another title', views: 200 },
],
comments: [
{ id: '1', text: 'a comment about post 1', postId: '1' },
Expand Down Expand Up @@ -153,9 +153,9 @@ GET /posts?_sort=id,-views
- `x.y.z[i]...`

```
GET /posts?author.name=foo
GET /posts?author.email=foo
GET /posts?tags[0]=foo
GET /foo?a.b=bar
GET /foo?x.y_lt=100
GET /foo?arr[0]=bar
```

### Embed
Expand Down

0 comments on commit 38ded8a

Please sign in to comment.