Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3be7862

Browse files
committed
Corrected POST and DELETE request to PATCH.
1 parent 695203b commit 3be7862

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

week3/homework/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ Add four more actions:
99

1010
### `readTodo` (`GET /todos/:id`)
1111

12-
Get a single to-do with ID `:id`
12+
Get a single to-do with ID `:id`
1313

1414
### `clearTodos` (`DELETE /todos`)
1515

16-
Clears the list of to-dos
16+
Clears the list of to-dos
1717

18-
### `markAsDone` (`POST /todos/:id/done`)
18+
### `markAsDone` (PATCH /todos/:id)
1919

20-
Sets the `done` flag of a single to-do to `true`
20+
Sets the done flag of a single to-do to true
2121

22-
### `markAsNotDone` (`DELETE /todos/:id/done`)
22+
### `markAsNotDone` (PATCH /todos/:id)
2323

24-
Sets the `done` flag of a single to-do to `false`
24+
Sets the done flag of a single to-do to false
2525

2626
## Requirements
2727

0 commit comments

Comments
 (0)