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.

Issue fork openapi-3174817

Command icon 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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cgoffin created an issue. See original summary.

cgoffin’s picture

richgerdes made their first commit to this issue’s fork.

  • richgerdes committed 49beb59 on 3174817-http-response-code
    Issue #3174817 by cgoffin, richgerdes: HTTP response code for delete...

  • richgerdes committed 49beb59 on 8.x-2.x
    Issue #3174817 by cgoffin, richgerdes: HTTP response code for delete...
richgerdes’s picture

Status: Active » Fixed

Good catch. The delete response code is indeed 204. Thanks for the patch!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.