Skip to content

Commit

Permalink
fix trie statistics swagger endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ssd04 committed Nov 10, 2023
1 parent cf410a0 commit 14dcd7d
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions cmd/proxy/config/swagger/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -3269,4 +3281,4 @@
}
}
}
}
}

0 comments on commit 14dcd7d

Please sign in to comment.