Skip to content

Delete Accept header is not checked for compliance with JSON:API #190

@lindyhopchris

Description

@lindyhopchris

When fixing #184 I've realised there's no checking of the Accept media type in the destroy controller action. The JSON:API specification shows that a DELETE request should have an Accept: application/vnd.api+json header, as shown in this example:
https://jsonapi.org/format/#crud-deleting

We need to add this, however I'd consider this a breaking change - because at the moment people may have set up clients to not send the Accept header. So this should be fixed for 3.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions