Skip to content

Commit b15a9d3

Browse files
committed
Tweak README.md and fix typo
1 parent 2c29354 commit b15a9d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ Now if you go to [http://localhost:3000/posts/1](), you'll get
3939

4040
Also when doing requests, its good to know that
4141
- If you make POST, PUT, PATCH or DELETE requests, changes will be automatically and safely saved to `db.json` using [lowdb](https://github.com/typicode/lowdb).
42-
- The request body JSON is object enclosed, just like the GET output. (for example `{"name": "Foobar"}`)
43-
- Id values are not mutable. Any `id` value in the body of your PUT or PATCH request wil be ignored, but a POST requests wil respect its value.
44-
- A POST, PUT or PATCH request should include a `Content-Type: application/json` header to use the JSON in the request body. Otherwise it wil result in a 200 OK but changes being made to the data.
42+
- Your request body JSON should be object enclosed, just like the GET output. (for example `{"name": "Foobar"}`)
43+
- Id values are not mutable. Any `id` value in the body of your PUT or PATCH request wil be ignored. Only a value set in a POST request wil be respected, but only if not already taken.
44+
- A POST, PUT or PATCH request should include a `Content-Type: application/json` header to use the JSON in the request body. Otherwise it wil result in a 200 OK but without changes being made to the data.
4545

4646
## Install
4747

0 commit comments

Comments
 (0)