From 40068512a6a2a85a6e69dd45598eb73f699c3776 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Fri, 25 Oct 2024 08:20:00 +0100 Subject: [PATCH] Complete documentation for debug endpoint (#969) --- openapi.yaml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/openapi.yaml b/openapi.yaml index c84072a7..6142e768 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -90,6 +90,40 @@ components: cid: $ref: "#/components/schemas/Cid" + Node: + type: object + properties: + nodeId: + type: string + peerId: + type: string + record: + type: string + address: + type: string + seen: + type: boolean + + CodexVersion: + type: object + properties: + version: + type: string + example: v0.1.7 + revision: + type: string + example: 0c647d8 + + PeersTable: + type: object + properties: + localNode: + $ref: "#/components/schemas/Node" + nodes: + type: array + items: + $ref: "#/components/schemas/Node" + DebugInfo: type: object properties: @@ -104,6 +138,10 @@ components: description: Path of the data repository where all nodes data are stored spr: $ref: "#/components/schemas/SPR" + table: + $ref: "#/components/schemas/PeersTable" + codex: + $ref: "#/components/schemas/CodexVersion" SalesAvailability: type: object