Skip to content

Posting to nested routes #25

Open
Open
@klobuczek

Description

@klobuczek

In a case of /posts/1/comments and a payload

{data: {type: 'comments', attributes: { content: 'Some comment'}}}

I would like to be able to add the relationship to posts without the client having to specify the relationship in the payload. I really hope this is compliant with the spec.
How would I implement this in json_api compliable? jsonapi_create does not take any params, but it would be helpful if it did.

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