For compound documents. Lets say I wanted to include actors
, agency
and state
in the GET /movies
endpoint. Should it be:
/movies?include=actors.agency.state
Or
/movies?include=actors,actors.agency,actors.agency.state
For compound documents. Lets say I wanted to include actors
, agency
and state
in the GET /movies
endpoint. Should it be:
/movies?include=actors.agency.state
Or
/movies?include=actors,actors.agency,actors.agency.state
The first option should be enough.
From the spec:
Note: Because compound documents require full linkage (except when relationship linkage is excluded by sparse fieldsets), intermediate resources in a multi-part path must be returned along with the leaf nodes. For example, a response to a request for
comments.author
should includecomments
as well as theauthor
of each of thosecomments
.