|
@ -806,6 +806,7 @@ paths: |
|
|
application/json: |
|
|
application/json: |
|
|
schema: |
|
|
schema: |
|
|
$ref: "#/components/schemas/ErrorResponse" |
|
|
$ref: "#/components/schemas/ErrorResponse" |
|
|
|
|
|
|
|
|
/genesis: |
|
|
/genesis: |
|
|
get: |
|
|
get: |
|
|
summary: Get Genesis |
|
|
summary: Get Genesis |
|
@ -813,7 +814,7 @@ paths: |
|
|
tags: |
|
|
tags: |
|
|
- Info |
|
|
- Info |
|
|
description: | |
|
|
description: | |
|
|
Get genesis. |
|
|
|
|
|
|
|
|
Get the genesis document. |
|
|
responses: |
|
|
responses: |
|
|
"200": |
|
|
"200": |
|
|
description: Genesis results. |
|
|
description: Genesis results. |
|
@ -827,6 +828,39 @@ paths: |
|
|
application/json: |
|
|
application/json: |
|
|
schema: |
|
|
schema: |
|
|
$ref: "#/components/schemas/ErrorResponse" |
|
|
$ref: "#/components/schemas/ErrorResponse" |
|
|
|
|
|
|
|
|
|
|
|
/genesis_chunked: |
|
|
|
|
|
get: |
|
|
|
|
|
summary: Get Genesis in paginated chunks |
|
|
|
|
|
operationId: genesis_chunked |
|
|
|
|
|
tags: |
|
|
|
|
|
- Info |
|
|
|
|
|
description: | |
|
|
|
|
|
Get genesis document in a paginated/chunked format to make it |
|
|
|
|
|
easier to iterate through larger gensis structures. |
|
|
|
|
|
parameters: |
|
|
|
|
|
- in: query |
|
|
|
|
|
name: chunkID |
|
|
|
|
|
description: Sequence number of the chunk to download. |
|
|
|
|
|
schema: |
|
|
|
|
|
type: integer |
|
|
|
|
|
default: 0 |
|
|
|
|
|
example: 1 |
|
|
|
|
|
responses: |
|
|
|
|
|
"200": |
|
|
|
|
|
description: Genesis results. |
|
|
|
|
|
content: |
|
|
|
|
|
application/json: |
|
|
|
|
|
schema: |
|
|
|
|
|
$ref: "#/components/schemas/GenesisChunkedResponse" |
|
|
|
|
|
"500": |
|
|
|
|
|
description: Error |
|
|
|
|
|
content: |
|
|
|
|
|
application/json: |
|
|
|
|
|
schema: |
|
|
|
|
|
$ref: "#/components/schemas/ErrorResponse" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/dump_consensus_state: |
|
|
/dump_consensus_state: |
|
|
get: |
|
|
get: |
|
|
summary: Get consensus state |
|
|
summary: Get consensus state |
|
@ -1894,6 +1928,35 @@ components: |
|
|
properties: {} |
|
|
properties: {} |
|
|
type: object |
|
|
type: object |
|
|
|
|
|
|
|
|
|
|
|
GenesisChunkedResponse: |
|
|
|
|
|
type: object |
|
|
|
|
|
required: |
|
|
|
|
|
- "jsonrpc" |
|
|
|
|
|
- "id" |
|
|
|
|
|
- "result" |
|
|
|
|
|
properties: |
|
|
|
|
|
jsonrpc: |
|
|
|
|
|
type: string |
|
|
|
|
|
example: "2.0" |
|
|
|
|
|
id: |
|
|
|
|
|
type: integer |
|
|
|
|
|
example: 0 |
|
|
|
|
|
result: |
|
|
|
|
|
required: |
|
|
|
|
|
- "chunk" |
|
|
|
|
|
- "total" |
|
|
|
|
|
- "data" |
|
|
|
|
|
properties: |
|
|
|
|
|
chunk: |
|
|
|
|
|
type: integer |
|
|
|
|
|
example: 0 |
|
|
|
|
|
total: |
|
|
|
|
|
type: integer |
|
|
|
|
|
example: 1 |
|
|
|
|
|
data: |
|
|
|
|
|
type: string |
|
|
|
|
|
example: "Z2VuZXNpcwo=" |
|
|
|
|
|
|
|
|
DumpConsensusResponse: |
|
|
DumpConsensusResponse: |
|
|
type: object |
|
|
type: object |
|
|
required: |
|
|
required: |
|
|