Skip to content

Commit

Permalink
Heiko's suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfhandl committed Oct 24, 2024
1 parent 8258cc9 commit f0e4a7e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/odata-protocol/odata-protocol.html
Original file line number Diff line number Diff line change
Expand Up @@ -2175,7 +2175,7 @@ <h3 id="1129-resolving-an-entity-id"><a id="ResolvinganEntityId" href="#Resolvin
<h3 id="11210-requesting-the-number-of-items-in-a-collection"><a id="RequestingtheNumberofItemsinaCollection" href="#RequestingtheNumberofItemsinaCollection">11.2.10 Requesting the Number of Items in a Collection</a></h3>
</summary>
<p>To request only the number of items of a collection of entities or items of a collection-valued property, the client issues a <code>GET</code> request with <code>/$count</code> appended to the resource path of the collection.</p>
<p>On success, the response body MUST contain the exact count of items matching the request after applying any <a href="#SystemQueryOptionfilter"><code>$filter</code></a> or <a href="#SystemQueryOptionsearch"><code>$search</code></a> system query options, formatted as a simple primitive integer value with media type <code>text/plain</code> without <code>charset</code> parameter, and the response body following rule <code>1*DIGIT</code>.</p>
<p>On success, the response body MUST contain the exact count of items matching the request after applying any <a href="#SystemQueryOptionfilter"><code>$filter</code></a> or <a href="#SystemQueryOptionsearch"><code>$search</code></a> system query options, formatted as a simple primitive integer value with media type <code>text/plain</code> without <code>charset</code> parameter, and the response body following rule <code>1*DIGIT</code>, see <a href="#ODataABNF">OData-ABNF</a>.</p>
<p>Clients SHOULD NOT combine the system query options <a href="#SystemQueryOptiontop"><code>$top</code></a>, <a href="#SystemQueryOptionskip"><code>$skip</code></a>, <a href="#SystemQueryOptionorderby"><code>$orderby</code></a>, <a href="#SystemQueryOptionexpand"><code>$expand</code></a>, and <a href="#SystemQueryOptionformat"><code>$format</code></a> with the path suffix <code>/$count</code>. The result of such a request is undefined.</p>
<div class="example">
<p>Example 69: return the number of products in the Products entity set</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/odata-protocol/odata-protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -3713,7 +3713,7 @@ matching the request after applying any
[`$filter`](#SystemQueryOptionfilter) or
[`$search`](#SystemQueryOptionsearch) system query options, formatted as
a simple primitive integer value with media type `text/plain` without `charset` parameter,
and the response body following rule `1*DIGIT`.
and the response body following rule `1*DIGIT`, see [OData-ABNF](#ODataABNF).

Clients SHOULD NOT combine the system query options
[`$top`](#SystemQueryOptiontop),
Expand Down
2 changes: 1 addition & 1 deletion odata-protocol/11 Data Service Requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@ matching the request after applying any
[`$filter`](#SystemQueryOptionfilter) or
[`$search`](#SystemQueryOptionsearch) system query options, formatted as
a simple primitive integer value with media type `text/plain` without `charset` parameter,
and the response body following rule `1*DIGIT`.
and the response body following rule `1*DIGIT`, see [OData-ABNF](#ODataABNF).

Clients SHOULD NOT combine the system query options
[`$top`](#SystemQueryOptiontop),
Expand Down

0 comments on commit f0e4a7e

Please sign in to comment.