From f3c53c499cd745b214ee2b75a6d80424cec669fd Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 1 Nov 2026 23:09:28 +0100 Subject: api: add x-continuum-heads to writes --- docs/openapi.yaml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'docs/openapi.yaml') diff --git a/docs/openapi.yaml b/docs/openapi.yaml index fac802d..0aea4a6 100644 --- a/docs/openapi.yaml +++ b/docs/openapi.yaml @@ -169,12 +169,18 @@ paths: responses: '200': description: With `increment`, the counter's value after it. + headers: + x-continuum-heads: + $ref: '#/components/headers/WrittenHeads' content: application/json: schema: type: integer '201': description: Inserted, and where. + headers: + x-continuum-heads: + $ref: '#/components/headers/WrittenHeads' content: application/json: schema: @@ -215,6 +221,9 @@ paths: responses: '204': description: Deleted. + headers: + x-continuum-heads: + $ref: '#/components/headers/WrittenHeads' '400': description: Invalid path. '401': @@ -1301,6 +1310,14 @@ components: type: string format: uuid + headers: + WrittenHeads: + description: >- + The document's heads after the write (sorted hex, comma-separated): a read with + them (`at`) on any node that has them includes the write. + schema: + type: string + responses: Unauthorized: description: Missing or wrong credentials. @@ -1316,7 +1333,7 @@ components: description: The value. headers: x-continuum-heads: - description: With `heads=true`, the heads at the time of the read (sorted hex, comma-separated). + description: With `heads=true`, the heads at the time of the read (sorted hex, comma-separated); on a write, those after it (`WrittenHeads`). schema: type: string x-continuum-stale: -- cgit v1.3.1