Skip to content

Commit 906aaeb

Browse files
committed
Clarify when default fieldsets should be returned.
1 parent a0b04c0 commit 906aaeb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

format/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,10 @@ with a `fields[DOCUMENT_TYPE]` parameter.
568568
GET /posts?include=authors&fields[posts]=id,title&fields[people]=id,name
569569
```
570570

571+
An endpoint SHOULD return a default set of fields for a document if no fields
572+
have been specified for its type, or if the endpoint does not support use of
573+
either `fields` or `fields[DOCUMENT_TYPE]`.
574+
571575
Note: `fields` and `fields[DOCUMENT_TYPE]` can not be mixed. If the latter
572576
format is used, then it must be used for the primary document type as well.
573577

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