From 62efd82d3871dbab3e7e7894d94faf8178d9e40d Mon Sep 17 00:00:00 2001 From: waldek Date: Mon, 19 May 2025 11:41:16 +0100 Subject: [PATCH 1/2] AB#10264 update docs with new event repsponse shape --- .../api-reference/events-api/index.md | 56 ++++++++++++------- 1 file changed, 35 insertions(+), 21 deletions(-) diff --git a/content/developers/api-reference/events-api/index.md b/content/developers/api-reference/events-api/index.md index 05bc9e7a8..bec5b916b 100644 --- a/content/developers/api-reference/events-api/index.md +++ b/content/developers/api-reference/events-api/index.md @@ -39,12 +39,13 @@ To minimize the impact, prior to switching to Asset-free Events, it is recommend ```bash cat > /tmp/event.json < /tmp/event.json < /tmp/search.json <}} - **Note:** The current preview does not support filtering of Events. - Filtering across event attributes and trails are coming in a future preview. - {{< /note >}} - - Post `search.json` to the `/search` endpoint: ```bash @@ -217,16 +225,19 @@ Event records in DataTrails are assigned UUIDs at creation time and referred to "Safety Rating": "90" }, "trails": [ - "Safety Conformance", "Clouseau" ], + "event_type": "Safety Conformance", "origin_tenant": "tenant/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "created_by": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "created_at": 1736421833577, "confirmation_status": "STORED", - "merklelog_commit": { - "index": "0", - "idtimestamp": "" + "ledger_entry": { + "index": "16", + "idtimestamp": "0196cf103fe5064c00", + "content_hash": "0e9ba3f1815fe893bab3ece6b5e396e8e804ee57061239fbee7b497d94b24ee8", + "hash_schema": "v0", + "log_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" } }, { @@ -237,16 +248,19 @@ Event records in DataTrails are assigned UUIDs at creation time and referred to "Safety Rating": "99" }, "trails": [ - "Safety Conformance", "Clouseau" ], + "event_type": "Safety Conformance", "origin_tenant": "tenant/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "created_by": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "created_at": 1736421873579, "confirmation_status": "STORED", - "merklelog_commit": { - "index": "0", - "idtimestamp": "" + "ledger_entry": { + "index": "8", + "idtimestamp": "0196c9448b6d064c00", + "content_hash": "791a76d42f7f07470f91226b7eb38645182afe2d4b2114ab52fc6dc4f9dd0260", + "hash_schema": "v0", + "log_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" } } ] @@ -264,7 +278,7 @@ Event records in DataTrails are assigned UUIDs at creation time and referred to ```bash cat > /tmp/search.json < Date: Mon, 19 May 2025 12:55:26 +0100 Subject: [PATCH 2/2] fixup! AB#10264 update docs with new event repsponse shape --- content/developers/api-reference/events-api/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/developers/api-reference/events-api/index.md b/content/developers/api-reference/events-api/index.md index bec5b916b..d07936bcc 100644 --- a/content/developers/api-reference/events-api/index.md +++ b/content/developers/api-reference/events-api/index.md @@ -197,7 +197,7 @@ Event records in DataTrails are assigned UUIDs at creation time and referred to * ledger_entry/idtimestamp eg. `ledger_entry/idtimestamp eq '0196cf103fe5064c00'` * ledger_entry/content_hash eg. `ledger_entry/content_hash eq '0e9ba3f1815fe893bab3ece6b5e396e8e804ee57061239fbee7b497d94b24ee8'` - currently following opertands are supportted: `eq, ne, gt, ge, lt, le` and following logical operators `and, or, not` + currently following operands are supported: `eq, ne, gt, ge, lt, le` and following logical operators `and, or, not` `top` = number of results to return (max. 50) and `skip` = how many results to skip over before returning set of results