From a17a8bd4087c4ffc0fd65be297703445513cc064 Mon Sep 17 00:00:00 2001 From: Ralf Handl Date: Thu, 9 Nov 2023 10:31:07 +0100 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Heiko Theißen --- odata-protocol/11.4 Data Modification.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/odata-protocol/11.4 Data Modification.md b/odata-protocol/11.4 Data Modification.md index 99b0abd87..4e55d3564 100644 --- a/odata-protocol/11.4 Data Modification.md +++ b/odata-protocol/11.4 Data Modification.md @@ -41,11 +41,11 @@ announce this via annotations with the terms [OData-VocCap](#ODataVocCap). If optimistic concurrency control is required for a resource, the -service MUST include an [ETag](#HeaderETag) header in a response to a +service MUST include an [`ETag`](#HeaderETag) header in a response to a `GET` request to the resource, and MAY include the ETag in a format-specific manner in responses containing that resource. -The presence of an [ETag](#HeaderETag) header in a response does not +The presence of an [`ETag`](#HeaderETag) header in a response does not imply in itself that the resource requires optimistic concurrency control; the ETag may just be used for caching and/or conditional `GET` requests. @@ -192,8 +192,8 @@ created entity. Upon successful completion the service MUST respond with either [`201 Created`](#ResponseCode201Created) and a representation of the created entity, or [`204 No Content`](#ResponseCode204NoContent) if the -request included a [Prefer](#Preferencereturnrepresentationandreturnminimal) header with a value of -[`return=minimal`](#Preferencereturnrepresentationandreturnminimal) and did not +request included a +[`return=minimal`](#Preferencereturnrepresentationandreturnminimal) preference and did not include the system query options [`$select`](#SystemQueryOptionselect) and [`$expand`](#SystemQueryOptionexpand).