Skip to content

Commit e6acb85

Browse files
committed
Merge pull request json-api#153 from dgeb/fix-path-plurality
Fix plurality of `author` paths.
2 parents 2c94d1a + fbd2813 commit e6acb85

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)