Skip to content

Commit 2a88cc7

Browse files
committed
Reference document updates for new return body on delete setting.
1 parent d02d1bb commit 2a88cc7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/asciidoc/repository-resources.adoc

+4
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,10 @@ The `PATCH` method supports the following media types:
287287
==== `DELETE`
288288

289289
The `DELETE` method deletes the resource exposed.
290+
By default, whether the response contains a body is controlled by the `Accept` header sent with the request.
291+
If the request header is present, a response body and a status code of `200 OK` is returned.
292+
If no header is present, the response body is empty and a successful request returns a status of `204 No Content`.
293+
This behavior can be overridden by configuring `RepositoryRestConfiguration.setReturnBodyOnDelete(…)` accordingly.
290294

291295
===== Methods used for invocation
292296

0 commit comments

Comments
 (0)