File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ Any data passed as the first parameter will be treated as the payload to be sent
128
128
"meta" : {
129
129
"api" : true ,
130
130
"method" : " POST" ,
131
- "endpoint" : " /sample " ,
131
+ "endpoint" : " /items " ,
132
132
"types" : [
133
133
" ITEMS_POST_REQUEST" ,
134
134
" ITEMS_POST_SUCCESS" ,
@@ -168,7 +168,7 @@ In this case, we are updating primary item `15` with a new object
168
168
"meta" : {
169
169
"api" : true ,
170
170
"method" : " PUT" ,
171
- "endpoint" : " /sample /10" ,
171
+ "endpoint" : " /items /10" ,
172
172
"types" : [
173
173
" ITEMS_PUT_REQUEST" ,
174
174
" ITEMS_PUT_SUCCESS" ,
@@ -181,7 +181,7 @@ In this case, we are updating primary item `15` with a new object
181
181
### DELETE
182
182
``` js
183
183
let deleteItem = createAPIAction (' ITEMS' , ' DELETE' , ' /items' );
184
- updateItem (15 );
184
+ deleteItem (15 );
185
185
186
186
```
187
187
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
201
201
"meta" : {
202
202
"api" : true ,
203
203
"method" : " DELETE" ,
204
- "endpoint" : " /sample /5" ,
204
+ "endpoint" : " /items /5" ,
205
205
"types" : [
206
206
" ITEMS_DELETE_REQUEST" ,
207
207
" ITEMS_DELETE_SUCCESS" ,
You can’t perform that action at this time.
0 commit comments