Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Support include on RelationshipView endpoints#1272

jokiefer started this conversation inIdeas
Discussion options

Hi folks,

as described inside thespecs 8.2 relationshop views should support including related data.

Furthermore, related resources can be requested from a relationship endpoint:

GET /articles/1/relationships/comments?include=comments.author HTTP/1.1
Accept: application/vnd.api+json

In this case, the primary data would be a collection ofresource identifier objects that represent linkage to comments for an article, while the full comments and comment authors would be returned as included data.

Note: This section applies to any endpoint that responds with primary data, regardless of the request type. For instance, a server could support the inclusion of related resources along with a POST request to create a resource or relationship.

I trial this with my RelationshipView, but it seems to me that including related data is not supported by this package.
Maybe there is a workaround?

You must be logged in to vote

Replies: 1 comment

Comment options

Thanks for reporting. Yes, I see it the same way that this should be possible, but currently it is not. The best way to approach it is first to create a reproducing test and then secondly try to implement it in the renderer. PR is welcome.

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Ideas
Labels
None yet
2 participants
@jokiefer@sliverc

[8]ページ先頭

©2009-2025 Movatter.jp