File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -536,17 +536,17 @@ In order to request documents related to other documents, the dot-separated path
536
536
of each document should be specified:
537
537
538
538
``` text
539
- GET /posts/1?include=comments.authors
539
+ GET /posts/1?include=comments.author
540
540
```
541
541
542
- Note: a request for ` comments.authors ` should not automatically also include
542
+ Note: a request for ` comments.author ` should not automatically also include
543
543
` comments ` in the response (although comments will obviously need to be
544
544
queried in order to fulfill the request for their authors).
545
545
546
546
Multiple related documents could be requested in a comma-separated list:
547
547
548
548
``` text
549
- GET /posts/1?include=authors ,comments,comments.authors
549
+ GET /posts/1?include=author ,comments,comments.author
550
550
```
551
551
552
552
### Sparse Fieldsets
@@ -565,7 +565,7 @@ A server **MAY** support requests that specify fields for other document types
565
565
with a ` fields[DOCUMENT_TYPE] ` parameter.
566
566
567
567
``` 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
569
569
```
570
570
571
571
An endpoint SHOULD return a default set of fields for a document if no fields
You can’t perform that action at this time.
0 commit comments