Skip to content

Commit b656461

Browse files
committed
Ordering of primary data and to-many relationship linkage objects
1 parent 40818ff commit b656461

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

format/index.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,13 @@ The above example should return the newest articles first. Any articles
819819
created on the same date will then be sorted by their title in ascending
820820
alphabetical order.
821821

822+
If sorting of the primary data is requested via request parameter `sort`,
823+
the server **MUST** return elements of the top-level `data` array of the
824+
response ordered accordingly to the criteria specified. The server **MAY**
825+
apply default sorting rules to top-level `data` if request parameter `sort`
826+
is not specified. The server **MAY** apply ordering to members of to-many
827+
relationship linkage arrays.
828+
822829
### Pagination <a href="#fetching-pagination" id="fetching-pagination" class="headerlink"></a>
823830

824831
A server **MAY** choose to limit the number of resources returned in a response

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