Skip to content

Commit

Permalink
Weed out {singleton}
Browse files Browse the repository at this point in the history
  • Loading branch information
HeikoTheissen committed Oct 10, 2024
1 parent aa51ff3 commit 39e9a53
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/odata-protocol/odata-protocol.html
Original file line number Diff line number Diff line change
Expand Up @@ -1430,7 +1430,7 @@ <h2 id="108-projected-entity"><a id="ProjectedEntity" href="#ProjectedEntity">10
</summary>
<p>Context URL templates:</p>
<pre><code>{context-url}#{entity-set}{/type-name}{select-list}/$entity
{context-url}#{singleton}{select-list}
{context-url}#{single-entity}{select-list}
{context-url}#{type-name}{select-list}</code></pre>
<p>If a single entity contains a subset of properties, the parenthesized comma-separated list of the selected defined or dynamic properties, instance annotations, navigation properties, functions, and actions is appended to the <code>{entity-set}</code> after an optional type-cast segment and prior to appending <code>/$entity</code>. If the response is not a subset of a single entity set, the <code>{select-list}</code> is instead appended to the <code>{type-name}</code> of the returned entity.</p>
<p>Regardless of how contained structural properties are represented in the request URL (as paths or as select options) they are represented in the context URL using path syntax, as defined in OData 4.0.</p>
Expand Down Expand Up @@ -1478,7 +1478,7 @@ <h2 id="1010-expanded-entity"><a id="ExpandedEntity" href="#ExpandedEntity">10.1
</summary>
<p>Context URL template:</p>
<pre><code>{context-url}#{entity-set}{/type-name}{select-list}/$entity
{context-url}#{singleton}{select-list}
{context-url}#{single-entity}{select-list}
{context-url}#{type-name}{select-list}</code></pre>
<p>For a 4.01 response, if a navigation property is explicitly expanded, then in addition to the non-suffixed names of any selected properties, navigation properties, functions or actions, the comma-separated list of properties MUST include the name of the expanded property, suffixed with the parenthesized comma-separated list of any properties of the expanded navigation property that are selected or expanded. If the expanded navigation property does not contain a nested <code>$select</code> or <code>$expand</code>, then the expanded property is suffixed with empty parentheses. If the expansion is recursive for nested children, a plus sign (<code>+</code>) is infixed between the navigation property name and the opening parenthesis.</p>
<p>For a 4.0 response, the expanded navigation property suffixed with parentheses is omitted from the select-list if it does not contain a nested <code>$select</code> or <code>$expand</code>, but MUST still be present, without a suffix, if it is explicitly selected.</p>
Expand Down
4 changes: 2 additions & 2 deletions docs/odata-protocol/odata-protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -2234,7 +2234,7 @@ http://host/service/$metadata#Customers(Address,Orders,Model.VipCustomer/Preferr
Context URL templates:

{context-url}#{entity-set}{/type-name}{select-list}/$entity
{context-url}#{singleton}{select-list}
{context-url}#{single-entity}{select-list}
{context-url}#{type-name}{select-list}

If a single entity contains a subset of properties, the parenthesized
Expand Down Expand Up @@ -2349,7 +2349,7 @@ http://host/service/$metadata
Context URL template:

{context-url}#{entity-set}{/type-name}{select-list}/$entity
{context-url}#{singleton}{select-list}
{context-url}#{single-entity}{select-list}
{context-url}#{type-name}{select-list}

For a 4.01 response, if a navigation property is explicitly expanded,
Expand Down
4 changes: 2 additions & 2 deletions odata-protocol/10 Context URL.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ http://host/service/$metadata#Customers(Address,Orders,Model.VipCustomer/Preferr
Context URL templates:

{context-url}#{entity-set}{/type-name}{select-list}/$entity
{context-url}#{singleton}{select-list}
{context-url}#{single-entity}{select-list}
{context-url}#{type-name}{select-list}

If a single entity contains a subset of properties, the parenthesized
Expand Down Expand Up @@ -372,7 +372,7 @@ http://host/service/$metadata
Context URL template:

{context-url}#{entity-set}{/type-name}{select-list}/$entity
{context-url}#{singleton}{select-list}
{context-url}#{single-entity}{select-list}
{context-url}#{type-name}{select-list}

For a 4.01 response, if a navigation property is explicitly expanded,
Expand Down

0 comments on commit 39e9a53

Please sign in to comment.