Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The documentation states that an HTTP status code 201 will be returned when deleting an entity. When executing a delete you actually get a 204 status code.
Steps to reproduce
Set up the json_api and enable the possibility to create/update/delete entities. Try to delete an entity.
Proposed resolution
Change the documentation to show the right status code for the delete responses.
Comment | File | Size | Author |
---|---|---|---|
#2 | openapi-delete_response_wrong_status_code-3174817-2.patch | 529 bytes | cgoffin |
Issue fork openapi-3174817
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
cgoffin CreditAttribution: cgoffin at Sopra Steria commentedHere a patch to change the status code.
Comment #7
richgerdesGood catch. The delete response code is indeed 204. Thanks for the patch!