cantierecreativo / redux-bees

A nice, short and declarative way to interact with JSON APIs
592 stars 41 forks source link

Destroy request unable to accept a body #68

Open YuriScarbaci opened 5 years ago

YuriScarbaci commented 5 years ago
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...