DELETE /articles/1/links/comments
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json
{
"data": { "type": "comments", "ids": ["12", "13"] }
}
Which looks a bit odd to me as I'm used to seeing delete operate on the URL (resource) you're deleting. Not sure if this is some sort of performance thing so that multiple resources can be deleted with one request. Does DELETE impact any HTTP caching? I would assume it at least invalidates the resource. If so, in this case wouldn't it be invalidating the wrong resource?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.