You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -335,7 +335,7 @@ Output:
335
335
336
336
### Update
337
337
338
-
Editing a record is done with the PUT method. The call returns the rows affected.
338
+
Editing a record is done with the PUT method. The call returns the number of rows affected.
339
339
340
340
```
341
341
PUT http://localhost/api.php/categories/2
@@ -352,7 +352,7 @@ Note that only fields that are specified in the request will be updated.
352
352
353
353
### Update (with JSON object)
354
354
355
-
Alternatively you can send a JSON object in the body. The call returns the rows affected.
355
+
Alternatively you can send a JSON object in the body. The call returns the number of rows affected.
356
356
357
357
```
358
358
PUT http://localhost/api.php/categories/2
@@ -388,7 +388,7 @@ This call uses a transaction and will either update all or no records. If the tr
388
388
389
389
### Delete
390
390
391
-
The DELETE verb is used to delete a record. The call returns the rows affected.
391
+
The DELETE verb is used to delete a record. The call returns the number of rows affected.
392
392
393
393
```
394
394
DELETE http://localhost/api.php/categories/2
@@ -402,7 +402,7 @@ Output:
402
402
403
403
### Delete (multiple)
404
404
405
-
The DELETE verb can also be used to delete multiple records. The call returns the rows affected for each primary key value specified in the URL.
405
+
The DELETE verb can also be used to delete multiple records. The call returns the number of rows affected for each primary key value specified in the URL.
406
406
407
407
```
408
408
DELETE http://localhost/api.php/categories/1,2
@@ -645,7 +645,7 @@ Output:
645
645
1
646
646
```
647
647
648
-
The call returns the rows affected. Note that multiple fields can be incremented and batch operations are supported (see: update/PUT).
648
+
The call returns the number of rows affected. Note that multiple fields can be incremented and batch operations are supported (see: update/PUT).
0 commit comments