8000 Merge pull request #1589 from timothystone/gh-pages · masterT/json-api@d9f3a52 · GitHub
[go: up one dir, main page]

Skip to content

Commit d9f3a52

Browse files
authored
Merge pull request json-api#1589 from timothystone/gh-pages
Remove redirect in link to PATCH RFC
2 parents 59ea3e1 + b17e007 commit d9f3a52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

faq/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ non-standard actions they support. Feel free to
6262

6363
Using PUT to partially update a resource (i.e. to change only some of its state)
6464
is not allowed by the
65-
[HTTP specification](https://tools.ietf.org/html/rfc7231#section-4.3.4).
65+
[HTTP specification](https://datatracker.ietf.org/doc/html/rfc7231#section-4.3.4).
6666
Instead, PUT is supposed to completely replace the state of a resource:
6767

6868
> “The PUT method requests that the state of the target resource be **created
6969
or replaced** with the state…in the request message payload. A successful PUT
7070
of a given representation would suggest that a subsequent GET on that same
7171
target resource will result in an equivalent representation being sent…”
7272

73-
The correct method for partial updates, therefore, is [PATCH](http://tools.ietf.org/html/rfc5789),
73+
The correct method for partial updates, therefore, is [PATCH](https://datatracker.ietf.org/doc/html/rfc5789),
7474
which is what JSON:API uses. And because PATCH can also be used compliantly for
7575
full resource replacement, JSON:API hasn't needed to define any behavior for
7676
PUT so far. However, it may define PUT semantics in the future.

0 commit comments

Comments
 (0)
0