From 2a88cc7ea6c9a70922625e812c62f6b9108cbdba Mon Sep 17 00:00:00 2001 From: Oliver Drotbohm Date: Tue, 21 Feb 2023 17:48:15 +0100 Subject: [PATCH] Reference document updates for new return body on delete setting. --- src/main/asciidoc/repository-resources.adoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/asciidoc/repository-resources.adoc b/src/main/asciidoc/repository-resources.adoc index 0d91384a6..f11663e87 100644 --- a/src/main/asciidoc/repository-resources.adoc +++ b/src/main/asciidoc/repository-resources.adoc @@ -287,6 +287,10 @@ The `PATCH` method supports the following media types: ==== `DELETE` The `DELETE` method deletes the resource exposed. +By default, whether the response contains a body is controlled by the `Accept` header sent with the request. +If the request header is present, a response body and a status code of `200 OK` is returned. +If no header is present, the response body is empty and a successful request returns a status of `204 No Content`. +This behavior can be overridden by configuring `RepositoryRestConfiguration.setReturnBodyOnDelete(…)` accordingly. ===== Methods used for invocation