Skip to content

Commit a60070f

Browse files
committed
Merge pull request #132 from n00ge/gh-pages
Fixed paths for PATCH requests on format/index.md
2 parents c9c4ad1 + 3b5477a commit a60070f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

format/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ PATCH /photos/1
677677
Content-Type: application/json-patch+json
678678
679679
[
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" }
681681
]
682682
```
683683

@@ -726,7 +726,7 @@ Content-Type: application/json-patch+json
726726
Accept: application/json
727727
728728
[
729-
{ "op": "replace", "path": "/photos/0/links/author", "value": 2 }
729+
{ "op": "replace", "path": "/photos/1/links/author", "value": 2 }
730730
]
731731
```
732732

@@ -768,7 +768,7 @@ the `PATCH` request:
768768
PATCH /photos/1
769769
770770
[
771-
{ "op": "add", "path": "/photos/0/links/comments/-", "value": 30 }
771+
{ "op": "add", "path": "/photos/1/links/comments/-", "value": 30 }
772772
]
773773
```
774774

@@ -778,7 +778,7 @@ To remove comment 5 from this photo, issue a `remove` operation:
778778
PATCH /photos/1
779779
780780
[
781-
{ "op": "remove", "path": "/photos/0/links/comments/5" }
781+
{ "op": "remove", "path": "/photos/1/links/comments/5" }
782782
]
783783
```
784784

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy