Skip to content

Commit

Permalink
Merge pull request #406 from multiversx/fix-swagger-docs
Browse files Browse the repository at this point in the history
Fix trie statistics swagger endpoint
  • Loading branch information
ssd04 authored Nov 14, 2023
2 parents cf410a0 + 14dcd7d commit aa8b673
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 aa8b673

Please sign in to comment.