Skip to content

Commit 0ce877d

Browse files
authored
Merge pull request json-api#1604 from jelhan/patch-4
Clarify query parameters for top-level self link
2 parents 0801766 + 93660d6 commit 0ce877d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

_format/1.1/index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,15 @@ The top-level [links object][links] **MAY** contain the following members:
319319
Schema) for the current document.
320320
* [pagination] links for the primary data.
321321

322+
> Note: The `self` link in the top-level `links` object allows a client to
323+
> refresh the data represented by the current response document. The client
324+
> should be able to use the provided link without applying any additional
325+
> information. Therefore the link must contain the query parameters provided
326+
> by the client to generate the response document. This includes but is not
327+
> limited to query parameters used for [inclusion of related resources][fetching resources],
328+
> [sparse fieldsets][fetching sparse fieldsets], [sorting][fetching sorting],
329+
> [pagination][fetching pagination] and [filtering][fetching filtering].
330+
322331
The document's "primary data" is a representation of the resource or collection
323332
of resources targeted by a request.
324333

0 commit comments

Comments
 (0)