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 @@ -677,7 +677,7 @@ PATCH /photos/1
677
677
Content-Type: application/json-patch+json
678
678
679
679
[
680
- { "op": "replace", "path": "/photos/0 /src", "value": "http://example.com/hamster.png" }
680
+ { "op": "replace", "path": "/photos/1 /src", "value": "http://example.com/hamster.png" }
681
681
]
682
682
```
683
683
@@ -726,7 +726,7 @@ Content-Type: application/json-patch+json
726
726
Accept: application/json
727
727
728
728
[
729
- { "op": "replace", "path": "/photos/0 /links/author", "value": 2 }
729
+ { "op": "replace", "path": "/photos/1 /links/author", "value": 2 }
730
730
]
731
731
```
732
732
@@ -768,7 +768,7 @@ the `PATCH` request:
768
768
PATCH /photos/1
769
769
770
770
[
771
- { "op": "add", "path": "/photos/0 /links/comments/-", "value": 30 }
771
+ { "op": "add", "path": "/photos/1 /links/comments/-", "value": 30 }
772
772
]
773
773
```
774
774
@@ -778,7 +778,7 @@ To remove comment 5 from this photo, issue a `remove` operation:
778
778
PATCH /photos/1
779
779
780
780
[
781
- { "op": "remove", "path": "/photos/0 /links/comments/5" }
781
+ { "op": "remove", "path": "/photos/1 /links/comments/5" }
782
782
]
783
783
```
784
784
You can’t perform that action at this time.
0 commit comments