Skip to content

Commit

Permalink
Fix: adapt to changes in the sample code (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
grenik and sjvans authored Sep 12, 2024
1 parent 78d76c4 commit 20a27c1
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,36 +78,36 @@ cds watch

Send an update request that changes personal data:
```http
PATCH http://localhost:4004/admin/Customers(8e2f2640-6866-4dcf-8f4d-3027aa831cad) HTTP/1.1
PATCH http://localhost:4004/odata/v4/admin/Customers('1004155')
Authorization: Basic alice:in-wonderland
Content-Type: application/json
{
"firstName": "Johnny",
"lastName": "Doey"
"firstName": "Danny",
"lastName": "Joules"
}
```

See the audit logs in the server's console output:
```sh
{
[audit-log] - PersonalDataModified: {
data_subject: {
type: 'AdminService.Customers',
id: { ID: '8e2f2640-6866-4dcf-8f4d-3027aa831cad' },
id: { ID: '1004155' },
role: 'Customer',
type: 'AdminService.Customers'
},
object: {
type: 'AdminService.Customers',
id: { ID: '8e2f2640-6866-4dcf-8f4d-3027aa831cad' }
id: { ID: '1004155' }
},
attributes: [
{ name: 'firstName', old: 'John', new: 'Johnny' },
{ name: 'lastName', old: 'Doe', new: 'Doey' }
{ name: 'firstName', old: 'Daniel', new: 'Danny' },
{ name: 'lastName', old: 'Watts', new: 'Joules' }
],
user: 'alice',
uuid: '71fa93d9-c993-405f-ba1b-a9ef42668199',
tenant: 't1',
uuid: '1391A703E2CBE52E817269EC7527368C',
time: '2023-02-26T08:13:48.287Z'
user: 'alice',
time: 2023-02-26T08:13:48.287Z
}
```
Expand Down

0 comments on commit 20a27c1

Please sign in to comment.