Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Destroy request unable to accept a body #68

Open
YuriScarbaci opened this issue Mar 25, 2019 · 0 comments
Open

Destroy request unable to accept a body #68

YuriScarbaci opened this issue Mar 25, 2019 · 0 comments

Comments

@YuriScarbaci
Copy link

DELETE /articles/1/relationships/comments HTTP/1.1
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json

{
  "data": [
    { "type": "comments", "id": "12" },
    { "type": "comments", "id": "13" }
  ]
}`

Note: RFC 7231 specifies that a DELETE request may include a body, but that a server may reject the request. This spec defines the semantics of a server, and we are defining its semantics for JSON:API.

end of https://jsonapi.org/format/#crud-updating-to-one-relationships section

Redux-bees doesn't allow sending a body with a DELETE request...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant