Skip to content

Commit

Permalink
TC 2024-10-02
Browse files Browse the repository at this point in the history
  • Loading branch information
HeikoTheissen committed Oct 4, 2024
1 parent 33b49a8 commit b51af1a
Show file tree
Hide file tree
Showing 11 changed files with 157 additions and 165 deletions.
5 changes: 5 additions & 0 deletions docs/odata-csdl-json/styles/odata.css
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ td > code {
margin-left: 40px;
}

.caption p {
margin-left: 40px;
margin-bottom: -1em;
}

.side-by-side {
margin: -1em 0;
}
Expand Down
5 changes: 5 additions & 0 deletions docs/odata-csdl-xml/styles/odata.css
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ td > code {
margin-left: 40px;
}

.caption p {
margin-left: 40px;
margin-bottom: -1em;
}

.side-by-side {
margin: -1em 0;
}
Expand Down
5 changes: 5 additions & 0 deletions docs/odata-data-aggregation-ext/styles/odata.css
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ td > code {
margin-left: 40px;
}

.caption p {
margin-left: 40px;
margin-bottom: -1em;
}

.side-by-side {
margin: -1em 0;
}
Expand Down
5 changes: 5 additions & 0 deletions docs/odata-json-format/styles/odata.css
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ td > code {
margin-left: 40px;
}

.caption p {
margin-left: 40px;
margin-bottom: -1em;
}

.side-by-side {
margin: -1em 0;
}
Expand Down
208 changes: 97 additions & 111 deletions docs/odata-protocol/odata-protocol.html

Large diffs are not rendered by default.

37 changes: 10 additions & 27 deletions docs/odata-protocol/odata-protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -4556,8 +4556,11 @@ non-containment navigation property can be replaced without changing either the
old or the new targeted entity itself. The targeted entity can then only be
specified by an entity reference (see [OData-JSON, section 14](https://docs.oasis-open.org/odata/odata-json-format/v4.02/odata-json-format-v4.02.html#EntityReference)).

The following JSON payload changes the last name and the manager of Suzanne Brown:
The following JSON payload changes the last name and the manager of Suzanne Brown.
The effect would be the same if the `@context` was omitted from the request.
:::: side-by-side
::::: caption
Request
```json
PUT http://host/service/Employees(7)?$expand=Manager
Content-Type: application/json
Expand All @@ -4571,6 +4574,9 @@ Content-Type: application/json
}
}
```
:::::
::::: caption
Response
```json
{
"@context": "$metadata#Employees/$entity",
Expand All @@ -4584,11 +4590,13 @@ Content-Type: application/json
}
}
```
:::::
::::

If the targeted entity in the payload contains some structural properties,
`PUT` resets all its other structural properties. The following alternative
payloads both reset the first and last names of the new manager:
payload resets the first and last names of the new manager.
The effect would be the same if the `@id` was omitted from the request.
:::: side-by-side
```json
{
Expand All @@ -4614,31 +4622,6 @@ payloads both reset the first and last names of the new manager:
}
```
::::

:::: side-by-side
```json
{
"FirstName": "Suzanne",
"LastName": "Brown-Johnson",
"Manager": {
"EmployeeID": 6
}
}
```
```json
{
"@context": "$metadata#Employees/$entity",
"EmployeeID": 7,
"FirstName": "Suzanne",
"LastName": "Brown-Johnson",
"Manager": {
"EmployeeID": 6,
"FirstName": null,
"LastName": null
}
}
```
::::
:::

Clients MAY associate an id with individual nested entities in the
Expand Down
5 changes: 5 additions & 0 deletions docs/odata-protocol/styles/odata.css
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ td > code {
margin-left: 40px;
}

.caption p {
margin-left: 40px;
margin-bottom: -1em;
}

.side-by-side {
margin: -1em 0;
}
Expand Down
5 changes: 5 additions & 0 deletions docs/odata-temporal-ext/styles/odata.css
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ td > code {
margin-left: 40px;
}

.caption p {
margin-left: 40px;
margin-bottom: -1em;
}

.side-by-side {
margin: -1em 0;
}
Expand Down
5 changes: 5 additions & 0 deletions docs/odata-url-conventions/styles/odata.css
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ td > code {
margin-left: 40px;
}

.caption p {
margin-left: 40px;
margin-bottom: -1em;
}

.side-by-side {
margin: -1em 0;
}
Expand Down
37 changes: 10 additions & 27 deletions odata-protocol/11.4 Data Modification.md
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,11 @@ non-containment navigation property can be replaced without changing either the
old or the new targeted entity itself. The targeted entity can then only be
specified by an entity reference (see [#OData-JSON#EntityReference]).

The following JSON payload changes the last name and the manager of Suzanne Brown:
The following JSON payload changes the last name and the manager of Suzanne Brown.
The effect would be the same if the `@context` was omitted from the request.
:::: side-by-side
::::: caption
Request
```json
PUT http://host/service/Employees(7)?$expand=Manager
Content-Type: application/json
Expand All @@ -568,6 +571,9 @@ Content-Type: application/json
}
}
```
:::::
::::: caption
Response
```json
{
"@context": "$metadata#Employees/$entity",
Expand All @@ -581,11 +587,13 @@ Content-Type: application/json
}
}
```
:::::
::::

If the targeted entity in the payload contains some structural properties,
`PUT` resets all its other structural properties. The following alternative
payloads both reset the first and last names of the new manager:
payload resets the first and last names of the new manager.
The effect would be the same if the `@id` was omitted from the request.
:::: side-by-side
```json
{
Expand All @@ -611,31 +619,6 @@ payloads both reset the first and last names of the new manager:
}
```
::::

:::: side-by-side
```json
{
"FirstName": "Suzanne",
"LastName": "Brown-Johnson",
"Manager": {
"EmployeeID": 6
}
}
```
```json
{
"@context": "$metadata#Employees/$entity",
"EmployeeID": 7,
"FirstName": "Suzanne",
"LastName": "Brown-Johnson",
"Manager": {
"EmployeeID": 6,
"FirstName": null,
"LastName": null
}
}
```
::::
:::

Clients MAY associate an id with individual nested entities in the
Expand Down
5 changes: 5 additions & 0 deletions styles/odata.css
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ td > code {
margin-left: 40px;
}

.caption p {
margin-left: 40px;
margin-bottom: -1em;
}

.side-by-side {
margin: -1em 0;
}
Expand Down

0 comments on commit b51af1a

Please sign in to comment.