Skip to content

Commit

Permalink
Merge pull request #1088 from AntelopeIO/pause-at-block-docs
Browse files Browse the repository at this point in the history
Update docs add pause_at_block
  • Loading branch information
ericpassmore authored Jan 6, 2025
2 parents 12798d5 + 0f5cc15 commit b3b0b5a
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions plugins/producer_api_plugin/producer.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,39 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/Error"
/producer/pause_at_block:
post:
summary: pause_at_block
description: |
Pause node at the specified block. Use /producer/resume to un-pause. If specified block is less than head then returns an error.
### Usage
Note that this pauses all nodes not just producer nodes. The common use case is to use on non-producer nodes as a way of freezing state. For example, a user might wish to download all the rows of a table. This would allow the user to freeze at a block number and then iterate through an entire table.
operationId: pause_at_block
requestBody:
content:
application/json:
schema:
type: object
properties:
block_num:
type: integer
description: Block number
example: 5102
responses:
"201":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/OK"
"400":
description: client error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/producer/resume:
post:
summary: resume
Expand Down

0 comments on commit b3b0b5a

Please sign in to comment.