Skip to content

Commit 79a2d7f

Browse files
committed
fix typos in README
1 parent a0e126c commit 79a2d7f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Any data passed as the first parameter will be treated as the payload to be sent
128128
"meta": {
129129
"api": true,
130130
"method": "POST",
131-
"endpoint": "/sample",
131+
"endpoint": "/items",
132132
"types": [
133133
"ITEMS_POST_REQUEST",
134134
"ITEMS_POST_SUCCESS",
@@ -168,7 +168,7 @@ In this case, we are updating primary item `15` with a new object
168168
"meta": {
169169
"api": true,
170170
"method": "PUT",
171-
"endpoint": "/sample/10",
171+
"endpoint": "/items/10",
172172
"types": [
173173
"ITEMS_PUT_REQUEST",
174174
"ITEMS_PUT_SUCCESS",
@@ -181,7 +181,7 @@ In this case, we are updating primary item `15` with a new object
181181
### DELETE
182182
```js
183183
let deleteItem = createAPIAction('ITEMS', 'DELETE', '/items' );
184-
updateItem(15);
184+
deleteItem(15);
185185

186186
```
187187
In the case of `DELETE`, you just need to specify the primary id of tha which you want to delete.
@@ -201,7 +201,7 @@ No need to pass in any payload data, as that would get dropped anyways because o
201201
"meta": {
202202
"api": true,
203203
"method": "DELETE",
204-
"endpoint": "/sample/5",
204+
"endpoint": "/items/5",
205205
"types": [
206206
"ITEMS_DELETE_REQUEST",
207207
"ITEMS_DELETE_SUCCESS",

0 commit comments

Comments
 (0)