Skip to content

Commit fbd2813

Browse files
committed
Fix plurality of author paths.
In a few instances, `authors` was used instead of `author`, even though it's a singular relationship. This change brings the "Fetching" section in agreement with the rest of the spec.
1 parent 2c94d1a commit fbd2813

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

format/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -536,17 +536,17 @@ In order to request documents related to other documents, the dot-separated path
536536
of each document should be specified:
537537

538538
```text
539-
GET /posts/1?include=comments.authors
539+
GET /posts/1?include=comments.author
540540
```
541541

542-
Note: a request for `comments.authors` should not automatically also include
542+
Note: a request for `comments.author` should not automatically also include
543543
`comments` in the response (although comments will obviously need to be
544544
queried in order to fulfill the request for their authors).
545545

546546
Multiple related documents could be requested in a comma-separated list:
547547

548548
```text
549-
GET /posts/1?include=authors,comments,comments.authors
549+
GET /posts/1?include=author,comments,comments.author
550550
```
551551

552552
### Sparse Fieldsets
@@ -565,7 +565,7 @@ A server **MAY** support requests that specify fields for other document types
565565
with a `fields[DOCUMENT_TYPE]` parameter.
566566

567567
```text
568-
GET /posts?include=authors&fields[posts]=id,title&fields[people]=id,name
568+
GET /posts?include=author&fields[posts]=id,title&fields[people]=id,name
569569
```
570570

571571
An endpoint SHOULD return a default set of fields for a document if no fields

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