From 14dcd7d47685af3dd047277f892affee048e6b3c Mon Sep 17 00:00:00 2001 From: ssd04 Date: Fri, 10 Nov 2023 13:08:40 +0200 Subject: [PATCH] fix trie statistics swagger endpoint --- cmd/proxy/config/swagger/openapi.json | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/cmd/proxy/config/swagger/openapi.json b/cmd/proxy/config/swagger/openapi.json index e6fdeda5..259c887f 100644 --- a/cmd/proxy/config/swagger/openapi.json +++ b/cmd/proxy/config/swagger/openapi.json @@ -1243,12 +1243,24 @@ } } }, - "/network/trie-statistics": { + "/network/trie-statistics/{shard}": { "get": { "tags": [ "network" ], - "summary": "returns metrics for the trie statistics", + "summary": "returns metrics for the trie statistics in the given shard", + "parameters": [ + { + "name": "shard", + "in": "path", + "description": "the shard ID to fetch the status from", + "required": true, + "schema": { + "type": "integer", + "default": 0 + } + } + ], "responses": { "200": { "description": "successful operation", @@ -1650,7 +1662,7 @@ "tags": [ "internal" ], - "summary": "returns the block at the given nonce following the protocol structure, but JSON encoded", + "summary": "returns the block at the given nonce following the protocol structure, JSON encoded", "parameters": [ { "name": "shard", @@ -1693,7 +1705,7 @@ "tags": [ "internal" ], - "summary": "returns the block with the given hash following the protocol structure, nut JSON encoded", + "summary": "returns the block with the given hash following the protocol structure, JSON encoded", "parameters": [ { "name": "shard", @@ -3269,4 +3281,4 @@ } } } -} \ No newline at end of file +}