Skip to content

Commit ab600c3

Browse files
committed
Merge pull request #155 from jcallaha/jcallaha-update-patch
update examples of PATCH to use string "id" rather than numeric
2 parents 06ac74a + 6dca3b3 commit ab600c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

format/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ Content-Type: application/json-patch+json
806806
Accept: application/vnd.api+json
807807
808808
[
809-
{ "op": "replace", "path": "/photos/0/links/author", "value": 2 }
809+
{ "op": "replace", "path": "/photos/0/links/author", "value": "2" }
810810
]
811811
```
812812

@@ -848,7 +848,7 @@ the `PATCH` request:
848848
PATCH /photos/1
849849
850850
[
851-
{ "op": "add", "path": "/photos/0/links/comments/-", "value": 30 }
851+
{ "op": "add", "path": "/photos/0/links/comments/-", "value": "30" }
852852
]
853853
```
854854

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