Skip to content

Inclusion of Related Resources (include params) on POST/PATCH requests #607

@thibaudgg

Description

@thibaudgg

At the end of Inclusion of Related Resources JSONAPI spec section it's mentioned:

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.

In the current JR implementation, I think that only FindOperation and ShowOperation support the include params. Correct?

Would it make sense to add support on other endpoints?

If have the case where we want to create an object and get related resources in the response. Something like: POST /articles?include=author.articles (create an article and get all existing articles from the same author).

Am I getting the spec wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions