We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daf89ae commit 12c7782Copy full SHA for 12c7782
README.md
@@ -20,7 +20,8 @@ Create a `db.json` file
20
],
21
"comments": [
22
{ "id": 1, "body": "some comment", "postId": 1 }
23
- ]
+ ],
24
+ "profile": { "name": "typicode" }
25
}
26
```
27
@@ -48,6 +49,8 @@ $ npm install -g json-server
48
49
50
Based on the previous `db.json` file, here are all the default routes. You can also add [other routes](#add-routes) using `--routes`.
51
52
+Plural resources
53
+
54
55
GET /posts
56
GET /posts/1
@@ -58,6 +61,15 @@ PATCH /posts/1
58
61
DELETE /posts/1
59
62
60
63
64
+Singular resources
65
66
+```
67
+GET /profile
68
+POST /profile
69
+PUT /profile
70
+PATCH /profile
71
72
73
To filter resources (use `.` to access deep properties)
74
75
0 commit comments